LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora as server + win2k (https://www.linuxquestions.org/questions/fedora-35/fedora-as-server-win2k-177914/)

maxut 12-13-2004 12:17 PM

Quote:

Originally posted by clarkus978

'iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE'
'iptables -A INPUT -i ppp0 -m state --state NEW,INVALID -j DROP'
'iptables -A FORWARD -i ppp0 -m state --state NEW,INVALID -j DROP'
'service iptables save'
then restart your network and it should work.

hmm. u apply MASQUERADE rule with "-o eth0", but filter for "ppp0" interface. u should apply filter rules internet interface.

may i sugest u the iptables script generator at www.iptables-script.dk . u can generate iptables rules for your network configuration. it is simple, easy and secure enough.
btw, add
iptables -A INPUT -i lo -j ACCEPT
line at the end of that script. otherwise local connections will be blocked.

good luck.

clarkus978 12-13-2004 11:14 PM

Thanks Ill give it a shot.:D


All times are GMT -5. The time now is 02:21 AM.