Netfilter / IPtables
I have a router-box on 192.168.1.1 and it forsees the entire network with internet.... The other PC's can happily surf/ftp/telnet, but the router itself can't ping. It CAN get on IRC but it can't access/ping google.com/debian.org (for example)... I need to have access to google from my router. HELP!
OS: Debian 3.0 IPtables/Netfilter: latest version Kernel: latest version Understanding text I used to enable the routing in IPtables (and it works like a charm) # Load the NAT module (this pulls in all the others). modprobe iptable_nat # In the NAT table (-t nat), Append a rule (-A) after routing # (POSTROUTING) for all packets going out ppp0 (-o ppp0) which says to # MASQUERADE the connection (-j MASQUERADE). iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE # Turn on IP forwarding echo 1 > /proc/sys/net/ipv4/ip_forward |
What do you mean by access to google? Ping or www?
|
I can't PING google/debian from my router box (this just has to work!)
But I can ping from any other computer in the network (thanks to Netfilter/Iptables => NAT) HELP! :confused: :cry: |
Got it working...... just close this topic
|
All times are GMT -5. The time now is 09:06 PM. |