Files
gists/share.sh
2017-09-18 11:47:26 +02:00

7 lines
156 B
Bash
Executable File

#!/bin/bash
#ifconfig eth1 10.10.10.1/24
sysctl -w net.ipv4.conf.all.forwarding=1
iptables -t nat -F
iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE