View previous topic :: View next topic |
Author |
Message |
slomo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jan 2004 Posts: 27
|
Posted: Mon Oct 29, 2007 7:06 pm Post subject: networking behind firewall |
|
|
I'm having some problems with networking behind a firewall, running firehol.
firehol runs on the gateway/router with no problems, any computor, including this one, is able to access the net and display web pages.
The problem I'm encountering is my wife's laptop, or any computor execept this one, she has a yahoo mail account, she is able to get to the log in page, but then the when she goes to the inbox, the dreaded "unable to display web page " error pops up. I am able to access her's and my yahoo mail accounts from this box.If I connect her laptop directly to the DSL modem, she can connect just fine.
So I believe that something within the firehol/iptables is not correctly forwarding some traffic.
I have posted iptables -L at:
http://pastebin.com/m7c7933e4
firehol.conf below:
FIREHOL_LOG_MODE="ULOG"
interface eth0 interface1 src "192.168.2.0/24" dst 192.168.2.1
policy drop
server ICMP accept
server cups accept
server dhcp accept
server dns accept
server ms_ds accept
server ntp accept
server samba accept
client all accept
interface eth1 interface2 src "192.168.2.0/24" dst 192.168.2.2
policy drop
server ICMP accept
server cups accept
server dhcp accept
server dns accept
server ms_ds accept
server ntp accept
server samba accept
client all accept
interface ppp0 interface3 src not "${UNROUTABLE_IPS} "
policy drop
protection strong
server ntp accept
client all accept
# Router No 1.
router router1 inface eth0 outface eth1 src "192.168.2.0/24" dst "192.168.2.0/24"
masquerade
route all accept
# Router No 2.
router router2 inface eth0 outface ppp0 src "192.168.2.0/24" dst not "${UNROUTABLE_IPS} "
masquerade
route all accept
# Router No 3.
router router3 inface eth1 outface eth0 src "192.168.2.0/24" dst "192.168.2.0/24"
masquerade
route all accept
# Router No 4.
router router4 inface eth1 outface ppp0 src "192.168.2.0/24" dst not "${UNROUTABLE_IPS} "
masquerade
route all accept
# Router No 5.
router router5 inface ppp0 outface eth0 src not "${UNROUTABLE_IPS} " dst "192.168.2.0/24"
masquerade
route all accept
# Router No 6.
router router6 inface ppp0 outface eth1 src not "${UNROUTABLE_IPS} " dst "192.168.2.0/24"
masquerade
route all accept
If some knowledgeable person would be kind enough to point me in the correct direction, I would be grateful
Thanks Jerry
aka slomo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gerdesj l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 29 Sep 2005 Posts: 622 Location: Yeovil, Somerset, UK
|
Posted: Mon Oct 29, 2007 10:30 pm Post subject: |
|
|
Quote: | any computor, including this one, is able to access the net and display web pages.
The problem I'm encountering is my wife's laptop, or any computor execept this one, |
I'm a little confused here!
Is "this one" the router?
Are all computers including the router able to access the web apart from your wife's laptop?
Some thoughts (I'm afraid I know nothing about Firehol and can't be bothered to read it's docs):
You have a ULOG target, so if you have ulogd running you should get some logs which will show what is happening when her laptop approaches Yahoo.
Now if you are able to get from her laptop to all the web apart from Yahoo, then something else could be the problem. Do you have Squid or something acting as a proxy? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slomo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jan 2004 Posts: 27
|
Posted: Tue Oct 30, 2007 1:23 am Post subject: |
|
|
This computor, bluestreak, is able to connect to yahoo and access any email accounts without problem.
bluestreak is a router/firewall connected to the net via dsl modem, running firehol
other computors are connected to bluestreak via 4 port ethernet hub
other computors are able to surf the net with no problems
other computors cannot login into yahoo mail OS does not seem to matter, i've tried several livecd's
there are no proxies on bluestreak.
Thanks
jerry |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23082
|
Posted: Tue Oct 30, 2007 3:05 am Post subject: |
|
|
When posting iptables rules, the output from iptables-save -c is more desirable, since it shows all tables at once and includes counter information, which can indicate whether rules are being missed.
What exactly happens when you try to log in to the Yahoo mail? You said your wife's computer gives "page cannot be displayed," but that can be caused by a variety of factors. Try emerging net-analyzer/tcpdump on bluestreak and have it monitor the login attempt. Run it as tcpdump -i any -n -v. If you do not see anything unusual in the output, post it here for us to examine. Be careful not to include passwords in the output. I do not expect Yahoo would transmit passwords cleartext, but check to be sure. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slomo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jan 2004 Posts: 27
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23082
|
Posted: Wed Oct 31, 2007 3:39 am Post subject: |
|
|
That tcpdump is extremely noisy. What were you running while it was capturing?
Based on your use of PPP and the symptom described, I am going to guess that this is an MTU problem. Try adding a rule to the mangle table to clamp the MSS: iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu. See man iptables in the section for the TCPMSS target for an explanation of what this does. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slomo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jan 2004 Posts: 27
|
Posted: Thu Nov 01, 2007 6:28 pm Post subject: |
|
|
ok, finally had sometime for further troubleshooting.
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu resulted in:
iptables: No chain/target/match by that name
firehol doc's suggest to put "tcpmss auto" at the top of the config file, that errors with a line number matching the tcpmss auto line in the config.
continueing to look for a solution, I ended up changing pppoe.conf
to :
#CLAMPMSS=1412 < this was uncommented
CLAMPMSS=no
and /etc/conf.d/net
# "mru 1460"
# "mtu 1460"
commenting out both lines.
this now seems to work, but you can bet I'll be on the look-out for any problems.
If there are no problems over the next few days, I'll add solved to the title.
Thank you for all the assistance.
Jerry |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mastermind456 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/93506715246fa0f0a52fe3.jpg)
Joined: 09 Aug 2005 Posts: 10
|
Posted: Thu Jan 03, 2008 10:34 am Post subject: |
|
|
I ran into a similar problem with my home network.
My ISP's (Comcast) DHCP server was returning a MTU of 576 to my Gentoo router -- good for dial-up, crap for anything else. Any Linux machine behind the router would work fine, however WinXP/2003 simply refused to fragment below ~590.
Manually setting a MTU of 1500 in /etc/conf.d/net solved the problem. _________________ Do not taunt Happy Fun Ball. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|