LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-10-2003, 05:12 PM   #1
SWAT
Member
 
Registered: Aug 2003
Posts: 36

Rep: Reputation: 15
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
 
Old 11-10-2003, 06:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What do you mean by access to google? Ping or www?
 
Old 11-11-2003, 01:21 AM   #3
SWAT
Member
 
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)
HELP!

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

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


Reply


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 04:09 PM
Netfilter/iptables on Linux Debra Programming 1 10-03-2002 07:40 PM
Netfilter/iptables on Linux Debra Linux - General 2 10-03-2002 07:27 PM
Netfilter/iptables on Linux Debra Linux - Newbie 0 10-03-2002 06:33 PM
Firewall, netfilter, iptables...? snowbaby Linux - Security 9 08-13-2002 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 AM.

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