LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-24-2002, 04:26 PM   #1
NuFish
LQ Newbie
 
Registered: Feb 2002
Posts: 6

Rep: Reputation: 0
iptables w/2.4.17 (( ( FIXED ) ))


I'm not a newbie to linux or networking with linux, but iptables has me beat. I'm setting up a router/firewall for a friend of mine who has Bellsouth DSL, PPPOE works fine, everything works fine, except the firewall.

he can browse the web just fine, for most sites. Some sites, just.. wont connect. The one we've really noticed is jobsearch on monster.com. He can get to monster's front page, but when he clicks on search for jobs.. it just..does nothing. There are a few other sites, but this is the one we're using for testing purposes.

Anyway. Walking the interfaces we find

eth0 10.0.0.1 255.0.0.0
This is connected to the cable modem (10.0.0.138)
ppp0 Dynamic IP
This is the actualy net connection via PPPOE.
eth1 192.168.0.1 255.255.255.0
Connection to his lan

For the point of just tryint to get this to work i've defaulted to a 4 line firewall.

$IPTABLES -P INPUT ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

/proc/sys/net/ipv4/ip_forward and ip_dynaddr are both 1

I've also check to make sure that ECN (Explicit Congestion Notification) isnt turned on.

I basicly cant think of anything that can be causing this.. does anyone have any idea.

Last edited by NuFish; 02-24-2002 at 07:47 PM.
 
Old 02-24-2002, 04:30 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Double Post: http://www.linuxquestions.org/questi...threadid=15010

Please refrain from double posting.
 
Old 02-24-2002, 04:55 PM   #3
NuFish
LQ Newbie
 
Registered: Feb 2002
Posts: 6

Original Poster
Rep: Reputation: 0
...

Thanks for pointing that out. You could've at least posted a link on the thread that you closed instead of the one you left open. That way anyone who would've saw that and knew a possible way to help could've, instead of being block out of posting a reply..
 
Old 02-24-2002, 04:58 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I'm sorry, but i didn't close your other thread as I am the moderator of the Linux-General and LFS forums and do not have the power to close that thread in the Networking forum.
 
Old 02-24-2002, 05:03 PM   #5
NuFish
LQ Newbie
 
Registered: Feb 2002
Posts: 6

Original Poster
Rep: Reputation: 0
sorry

I apologize for wrongfully blaming you.. I just thought it was odd that they closed one and put a link to that one in the thread they left open.. ohwell..

Anyway.. this is still a major problem i'm having.. and i'm currently recompiling the kernel on that machine and am about to head over there to see some of this "timing out" as he describes it for myself..
 
Old 02-24-2002, 06:41 PM   #6
NuFish
LQ Newbie
 
Registered: Feb 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Cool I FIXED IT

It was a MTU problem caused by PPPOE, since the ppp0 interface was being used basicly as ethernet the MTU's were differnt and packets were getting foobar'd.. it worked some of the times because of smaller packets..

here is the one line fix to add to your iptables firewall..

$IPTABLES -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

Thanks
 
Old 02-27-2002, 04:28 AM   #7
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Yes this is caused due to one of the following.

No Fragmentation allowed

or

No ICMP Frag messages allowed out.
i.e "iptables -A INPUT -i eth0 -p icmp --icmp-type fragmentation-needed -j DROP"

PPPOE has an MTU of 1492, Ethernet is 1500

/Raz
 
  


Reply



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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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