LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2005, 03:46 PM   #1
LordNimrod
LQ Newbie
 
Registered: Nov 2005
Posts: 11
Blog Entries: 1

Rep: Reputation: 0
NAT - pppoe problems


Hy!
i have a problem and no solution... help please...
and here i go :

i have Mandrake 10 machine with a PPPoE connection to my ISP and a lan connection to my other computers

i want to make NAT so my other computers from lan to have internet access.
so i have eth1(lan): with the ip 10.0.0.200
and ppp0: with ip 17.18.9.64 and it's gateway(80.81.181.3)

i have don NAT and it is working .. but not how it should...

i used iptraf to see what happens when a connection from lan is made this is happening:

the ip from lan 10.0.0.3 connects to 10.0.0.200 -> eth1 .. nat is done and
on ppp0 it gets out with 17.18.9.64 .. ok all good until now but the problem is that it get's out but nothing comes in .. it sends the SYN flag and that's all, it doesn't receive anything back... why not???
 
Old 11-24-2005, 04:14 PM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
can you show the iptables rules you use? From your descriptions I don't get
enough information how you are using NAT

I'd use something like this as a start

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

see with
tcpdump -i ppp0


regards,

tlowk
 
Old 11-24-2005, 04:19 PM   #3
LordNimrod
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
i use something like this


echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to-source 17.18.9.64
 
  


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
Problems with PPPoE rhawi Linux - Networking 2 05-05-2005 05:08 PM
PPPoE Problems rhawi Ubuntu 0 05-05-2005 02:46 PM
PPPoE Problems banksy Linux - Networking 2 08-05-2004 02:41 AM
adsl-status can't read pppoe PID file with rp-pppoe program setup Smarvy Linux - Newbie 2 03-13-2004 11:35 PM
RP PPPoE Problems aldaeron Linux - Networking 2 08-06-2002 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:40 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