Untitled
unknown
plain_text
8 months ago
1.1 kB
17
Indexable
Never
source /etc/network/interfaces.d/* auto lo iface lo inet loopback iface lo inet6 loopback auto enp4s0 iface enp4s0 inet static address 78.46.177.76/27 gateway 78.46.177.65 up route add -net 78.46.177.76 netmask 255.255.255.224 gw 78.46.177.65 dev enp4s0 post-up sysctl -w net.ipv4.ip_forward=1 post-up iptables -t nat -A PREROUTING -i enp4s0 -p tcp -m multiport ! --dport 22,8006 -j DNAT --to 192.168.1.1 post-up iptables -t nat -A PREROUTING -i enp4s0 -p udp -j DNAT --to 192.168.1.1 # route 78.46.177.76/27 via 78.46.177.65 iface enp4s0 inet6 static address 2a01:4f8:121:4c9::2/64 gateway fe80::1 iface eth0 inet manual auto vmbr0 iface vmbr0 inet static address 192.168.1.0/24 bridge-ports none bridge-stp off bridge-fd 0 post-up iptables -t nat -A POSTROUTING -s '192.168.1.1/24' -o enp4s0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.1.1/24' -o enp4s0 -j MASQUERADE auto vmbr1 iface vmbr1 inet manual ovs_type OVSBridge
Leave a Comment