-
-
Save bitcynth/b9666d614e2461af1bbaa232e964ec50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip link set enp1s0 up | |
iptables -t nat -A POSTROUTING -o enp0s25 -j MASQUERADE | |
iptables -A FORWARD -i enp0s25 # -o enp1s0 -m state --state RELATED,ESTABLISHED -j ACCEPT | |
iptables -A FORWARD -i enp1s0 # -o enp0s25 -j ACCEPT | |
ip addr add 10.11.0.1/24 dev enp1s0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment