Parker Schuh | c1975fc | 2018-04-07 15:27:07 -0700 | [diff] [blame] | 1 | |
2 | in ie:/etc# cat sysctl.conf | ||||
3 | set to 1 the following flag: | ||||
4 | # Uncomment the next line to enable packet forwarding for IPv4 | ||||
5 | net.ipv4.ip_forward=1 | ||||
6 | |||||
7 | |||||
8 | cat > /etc/iptables.v4 | ||||
9 | *nat | ||||
10 | -A POSTROUTING -o eth0 -j MASQUERADE | ||||
11 | COMMIT | ||||
12 | |||||
13 | END | ||||
14 | |||||
15 | add to /etc/rc.local: | ||||
16 | iptables-restore < /etc/iptables.v4 | ||||
17 | |||||
18 | |||||
19 | |||||
20 | |||||
21 | create /etc/network/interfaces.d/eth1 with: | ||||
22 | allow-hotplug eth1 | ||||
23 | iface eth1 inet static | ||||
24 | address 11.0.0.179 | ||||
25 | netmask 255.0.0.0 |