LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Netfilter / IPtables (https://www.linuxquestions.org/questions/linux-newbie-8/netfilter-iptables-114552/)

SWAT 11-10-2003 05:12 PM

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

Mara 11-10-2003 06:05 PM

What do you mean by access to google? Ping or www?

SWAT 11-11-2003 01:21 AM

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:

SWAT 11-11-2003 09:04 AM

Got it working...... just close this topic


All times are GMT -5. The time now is 09:06 PM.