Created
July 10, 2019 16:57
-
-
Save stenno/ea2638930fe5ecbbf09bcba35c643942 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
# Generated by iptables-save v1.4.7 on Wed Jul 10 16:13:49 2019 | |
*nat | |
:PREROUTING ACCEPT [360:24859] | |
:POSTROUTING ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
-A PREROUTING -d 10.106.3.96/32 -p tcp -m tcp --dport 60000 -j DNAT --to-destination 10.106.122.211:3389 | |
-A POSTROUTING -d 10.106.122.221/32 -p tcp -m tcp --dport 3389 -j SNAT --to-source 10.106.3.96 | |
-A POSTROUTING -o eth0 -j MASQUERADE | |
-A POSTROUTING -j LOG | |
-A OUTPUT -d 10.106.3.96/32 -p tcp -m tcp --dport 60000 -j DNAT --to-destination 10.106.122.221 | |
COMMIT | |
# Completed on Wed Jul 10 16:13:49 2019 | |
# Generated by iptables-save v1.4.7 on Wed Jul 10 16:13:49 2019 | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [9:468] | |
:OUTPUT ACCEPT [590:94960] | |
-A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT | |
-A INPUT -i eth0 -p tcp -m tcp --dport 60000 -m state --state NEW,ESTABLISHED -j ACCEPT | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p icmp -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT | |
-A INPUT -j REJECT --reject-with icmp-host-prohibited | |
-A INPUT -j LOG | |
-A FORWARD -d 10.106.122.221/32 -i eth0 -p tcp -m tcp --dport 3389 -j ACCEPT | |
-A FORWARD -j LOG | |
COMMIT | |
# Completed on Wed Jul 10 16:13:49 2019 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment