Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-10-2003, 06:12 PM   #1
Registered: Aug 2003
Posts: 36

Rep: Reputation: 15
Netfilter / IPtables

I have a router-box on 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 (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
Old 11-10-2003, 07:05 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,692

Rep: Reputation: 232Reputation: 232Reputation: 232
What do you mean by access to google? Ping or www?
Old 11-11-2003, 02:21 AM   #3
Registered: Aug 2003
Posts: 36

Original Poster
Rep: Reputation: 15
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)

Last edited by SWAT; 11-11-2003 at 04:24 AM.
Old 11-11-2003, 10:04 AM   #4
Registered: Aug 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Got it working...... just close this topic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables (netfilter) losing packets! koningshoed Linux - Security 4 06-28-2003 05:09 PM
Netfilter/iptables on Linux Debra Programming 1 10-03-2002 08:40 PM
Netfilter/iptables on Linux Debra Linux - General 2 10-03-2002 08:27 PM
Netfilter/iptables on Linux Debra Linux - Newbie 0 10-03-2002 07:33 PM
Firewall, netfilter, iptables...? snowbaby Linux - Security 9 08-13-2002 04:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration