Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P10008
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Paladox
on Dec 21 2019, 2:26 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31484576: raw.txt
Dec 21 2019, 2:26 AM
2019-12-21 02:26:29 (UTC+0)
Subscribers
None
# The primary network interface
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
Paladox
created this paste.
Dec 21 2019, 2:26 AM
2019-12-21 02:26:29 (UTC+0)
Log In to Comment