Page MenuHomeMiraheze
Paste P261

(An Untitled Masterwork)
ActivePublic

Authored by Paladox on Feb 3 2020, 23:48.
Tags
None
Referenced Files
F1117732: raw.txt
Feb 3 2020, 23:48
Subscribers
None
allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 manual
pre-up sleep 5
up dhclient -6 -nw -v eth0
down dhclient -6 -r -v eth0
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
auto vmbr0
iface vmbr0 inet static
address 10.0.0.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o eth0 -j MASQUERADE

Event Timeline