Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Windows Boxes can't open SOME websites ?? iptables ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rawacid
n00b
n00b


Joined: 28 Jan 2004
Posts: 5

PostPosted: Mon Nov 15, 2004 10:47 pm    Post subject: Windows Boxes can't open SOME websites ?? iptables ? Reply with quote

Hi -all
I've finally after years of preaching to my dad convice him to give linux a try all went well and by the third night he was compling kernels ;)

But here is the problem after setting up a home-router that one from gentoo
He's windows boxes can't open some websites, ex(www.mweb.co.za ,www.sun.com etc) , but if he puts the same modem (Sentech wireless modem) on the windows machine those sites works fine.

So as a last resort I thought i'll come and beg some help

here is the specs

linux box (shuttle pc)

uname -a
Linux shuttle 2.6.9-gentoo-r4 #3 Mon Nov 15 23:44:28 SAST 2004 i686 VIA Nehemiah CentaurHauls GNU/Linux


uses DHCP and dnsmasq
/etc/dnsmasq.conf

domain-needed
bogus-priv
interface=eth0



iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 192.168.0.0/16 anywhere
ACCEPT all -- anywhere 192.168.0.0/16

Chain OUTPUT (policy ACCEPT)
target prot opt source destination



route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
66.18.87.50 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 66.18.87.50 0.0.0.0 UG 0 0 0 ppp0


Some interessting things are that if i use lynx on the linux box i can open all the sites that i can't open from the windows box, but also bear in mind that i can open the sites on the windows box if i put the modem on the windows box

any ideas ??
Back to top
View user's profile Send private message
EmmEff
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 197

PostPosted: Tue Nov 16, 2004 4:26 pm    Post subject: Reply with quote

Code:

ACCEPT all -- 192.168.0.0/16 anywhere
ACCEPT all -- anywhere 192.168.0.0/16


(Forgive my assumptions, I do not know your level of networking expertise) Is 192.168.0.0/16 really what you want? I think 192.168.0.0/24 is probably what you should have here. Not sure if that's related though...

Also, check your netmask setting on the Windows client.
Back to top
View user's profile Send private message
rawacid
n00b
n00b


Joined: 28 Jan 2004
Posts: 5

PostPosted: Tue Nov 16, 2004 5:36 pm    Post subject: Thanx, Reply with quote

ahh yes i think your right it should read /24 what EXACLY should my netmasks on the windows's pc be ?
thank you
Back to top
View user's profile Send private message
EmmEff
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 197

PostPosted: Tue Nov 16, 2004 5:44 pm    Post subject: Reply with quote

255.255.255.0 if you're using 192.168.0.0/24
Back to top
View user's profile Send private message
rawacid
n00b
n00b


Joined: 28 Jan 2004
Posts: 5

PostPosted: Tue Nov 16, 2004 6:40 pm    Post subject: still nadda Reply with quote

ok the netmask and stuff is fixed but still same problem ;(
any other ideas ??

pleaseee.
Back to top
View user's profile Send private message
EmmEff
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 197

PostPosted: Tue Nov 16, 2004 6:45 pm    Post subject: Reply with quote

Did you reboot both client and server?

Where did you get your IP masquerading settings from? Recheck that documentation.

I've seen this problem before and it's always been because of a mistyped value in the iptables settings.

I have used MonMotha's IPTables Firewall with much success over the past few years. It does all of this as well as provides a good firewall setup.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum