LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 10-16-2004, 04:11 PM   #1
shacky
LQ Newbie
 
Registered: Oct 2004
Distribution: debian
Posts: 2

Rep: Reputation: 0
iptables - strange behaviour of nat??


hi
I set iptables masquerade on "server".... clients has good gateway, and they can ping machines outside nat, dns works too, but nothing else tcp and udp packets goes to server and... are dropped???

I couldn't public dump of tcpdump because I haven't got 5 posts(there are urls) So if someone would like to help me it's there: cobra<dot>eu<dot>org/tcpdump.txt

Last edited by shacky; 10-16-2004 at 04:13 PM.
 
Old 10-16-2004, 07:29 PM   #2
n3tw0rk
Member
 
Registered: Sep 2003
Location: Rawalpindi, Pakistan
Distribution: Slackware
Posts: 86

Rep: Reputation: 15
have you read the IP masquerading HOWTO? If not then visit http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/ . Make sure that you use a simple firewall script such as http://en.tldp.org/HOWTO/IP-Masquera...FIREWALL-2.4.X the first time. Use iptables -nvL to see which policy is in action. I hope that helps!
 
Old 10-17-2004, 10:44 AM   #3
shacky
LQ Newbie
 
Registered: Oct 2004
Distribution: debian
Posts: 2

Original Poster
Rep: Reputation: 0
thx
it wasn't my first masquerade.... but first where i had to change TTL target this provider checks if TTL is diffrent then 64(linux), 255(windows)..... masquerade decreases TTL by one, so my masq has been sending 63, 254...

iptables -t mangle -A PREROUTING -i eth1 -j TTL --ttl-set 64

and everything is ok
you have to patch kernel with patch-o-matic from netfilter.org
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behaviour Anmol Suse/Novell 2 10-27-2005 11:05 PM
very strange FreeBSD behaviour kpachopoulos *BSD 10 01-30-2005 10:26 PM
SCP strange behaviour sbalasuriya Linux - Software 0 09-21-2004 10:50 AM
kahakai strange behaviour ... freeindy Linux - Software 0 04-30-2004 10:59 AM
Strange Behaviour mikeyt_3333 Linux - General 4 08-06-2001 03:07 PM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration