If this has already been answered, I apologize, I could not find an answer to this during my searching.
I am new at Linux/Unix and I have recently implemented a Raspberry Pi firewall/gateway on my network running iptables.
Ever since the implementation, I am unable to connect to a Windows-based PPTP server at my job. All of the posts I have found regarding iptables and PPTP involve forwarding the ports from outside to an internal address. It seems to be blocking OUTBOUND PPTP connections from my LAN to the work network.
From my limited knowledge, I thought that I had an "allow everything that's going out" rule, but I guess not. Entire iptables script listed below. Any guidance would be greatly appreciated. Thank you in advance!
PATH=/usr/sbin:/sbin:/bin:/usr/bin
iptables -F iptables -t nat -F iptables -t mangle -F iptables -X
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -m state --state NEW -i eth1 -j ACCEPT iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -A FORWARD -i eth1 -o eth1 -j REJECT
Aucun commentaire:
Enregistrer un commentaire