Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
d53150192b | |||
0535a62840 | |||
1938b4d89a | |||
ae827ab2c9 | |||
bf994bae67 |
26
README.md
26
README.md
@ -1,16 +1,18 @@
|
|||||||
# XYNat
|
# XYNat
|
||||||
NAT with integrated firewall for use with VMs and containers
|
NAT with integrated firewall for use with VMs and containers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Setup Instructions
|
## Setup Instructions
|
||||||
Install required tools (Debian):
|
Install required tools (Debian):
|
||||||
```console
|
```console
|
||||||
# apt update
|
# apt update
|
||||||
# apt install grep sed iptables iproute2
|
# apt install grep sed iptables iproute2 bridge-utils
|
||||||
```
|
```
|
||||||
|
|
||||||
Install required tools (Fedora):
|
Install required tools (Fedora):
|
||||||
```console
|
```console
|
||||||
# dnf install grep sed iptables iproute2
|
# dnf install grep sed iptables iproute2 bridge-utils
|
||||||
```
|
```
|
||||||
|
|
||||||
Clone git repository:
|
Clone git repository:
|
||||||
@ -19,6 +21,8 @@ Clone git repository:
|
|||||||
# git clone https://git.tjdev.de/DrMaxNix/xynat.git
|
# git clone https://git.tjdev.de/DrMaxNix/xynat.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
```
|
```
|
||||||
Usage: ./xynat [OPTIONS]
|
Usage: ./xynat [OPTIONS]
|
||||||
@ -60,9 +64,17 @@ Examples:
|
|||||||
./xynat --remove --iface "br2"
|
./xynat --remove --iface "br2"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example `/etc/network/interfaces`
|
|
||||||
#### Host
|
|
||||||
```
|
## Example: Isolate a KVM Virtual Machine
|
||||||
|
#### Host (`/etc/network/interfaces`)
|
||||||
|
```bash
|
||||||
|
auto enp1s0
|
||||||
|
iface enp1s0 inet static
|
||||||
|
# ...
|
||||||
|
|
||||||
|
up ifconfig enp1s0:1 10.0.0.4 netmask 255.0.0.0 up
|
||||||
|
|
||||||
auto br-vm-test
|
auto br-vm-test
|
||||||
iface br-vm-test inet static
|
iface br-vm-test inet static
|
||||||
bridge_ports none
|
bridge_ports none
|
||||||
@ -73,8 +85,8 @@ iface br-vm-test inet static
|
|||||||
post-down /opt/xynat/xynat
|
post-down /opt/xynat/xynat
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Guest
|
#### Guest (`/etc/network/interfaces`)
|
||||||
```
|
```bash
|
||||||
auto eth0
|
auto eth0
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.234.2
|
address 192.168.234.2
|
||||||
|
Loading…
Reference in New Issue
Block a user