2b161519be
Change-Id: Ibb08d9543af8af8d3ca4aedf45ba3fe5ae263bd4
9 lines
226 B
Bash
Executable File
9 lines
226 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
sudo iptables -F
|
|
sudo iptables -t nat -F
|
|
sudo iptables -t mangle -F
|
|
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
|
sudo iptables -A FORWARD -i eth1 -j ACCEPT
|