It is currently Thu, 08 Jun 2023 12:10:18 GMT



 
Author Message
 IPTABLES Help
Hello gurus,

Can someone give me a sample script for Iptables ?

I just want  Masquerading and everything open on the Lan

Thanks
Peter



 Sun, 13 Nov 2005 02:19:27 GMT   
 IPTABLES Help
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -F -t nat
iptables -X -t nat
iptables -F -t filter
iptables -X -t filter
iptables -t filter -P FORWARD DROP
iptables -t filter -A FORWARD -s 192.168.0.0/255.255.255.0 -d 0/0 -j ACCEPT
iptables -t filter -A FORWARD -s 0/0 -d 192.168.0.0/255.255.255.0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.1/254 -d 0/0 -j MASQUERADE
modprobe ip_nat_ftp
modprobe ip_nat_irc

but fastest way is just

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.1/254 -d 0/0 -j MASQUERADE

:P

U?ytkownik "Peter Pohlmann" <pe...@e-partner.com> napisa3 w wiadomo?ci
news:C_NAa.3543$fj7.405555@news20.bellglobal.com...

--
Serwis Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/



 Sun, 13 Nov 2005 03:59:05 GMT   
 
   [ 2 post ] 

Similar Threads

1. iptables help

2. iptables help

3. IPTABLES help requested

4. iptables - help?

5. Configuring iptables --help

6. IPTABLES - help with bloking websites

7. iptables help.....

8. iptables...help

9. iptables help / netfilter traversal

10. Iptables help


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software