Compare commits

...

5 Commits
main ... dev

Author SHA1 Message Date
d53150192b ⚰️ remove unstable docker example 2024-09-07 16:46:41 +02:00
0535a62840 🎨 remove blank line 2024-09-07 15:10:29 +02:00
1938b4d89a docker guide 2024-09-07 15:09:48 +02:00
ae827ab2c9 📝 improve kvm guide 2024-09-07 15:09:23 +02:00
bf994bae67 📝 suggest installing bridge-utils 2024-09-05 16:31:27 +02:00

View File

@ -1,16 +1,18 @@
# XYNat
NAT with integrated firewall for use with VMs and containers
## Setup Instructions
Install required tools (Debian):
```console
# apt update
# apt install grep sed iptables iproute2
# apt install grep sed iptables iproute2 bridge-utils
```
Install required tools (Fedora):
```console
# dnf install grep sed iptables iproute2
# dnf install grep sed iptables iproute2 bridge-utils
```
Clone git repository:
@ -19,6 +21,8 @@ Clone git repository:
# git clone https://git.tjdev.de/DrMaxNix/xynat.git
```
## Usage
```
Usage: ./xynat [OPTIONS]
@ -60,9 +64,17 @@ Examples:
./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
iface br-vm-test inet static
bridge_ports none
@ -73,8 +85,8 @@ iface br-vm-test inet static
post-down /opt/xynat/xynat
```
#### Guest
```
#### Guest (`/etc/network/interfaces`)
```bash
auto eth0
iface eth0 inet static
address 192.168.234.2