View previous topic :: View next topic |
Author |
Message |
rawacid n00b
Joined: 28 Jan 2004 Posts: 5
|
Posted: Mon Nov 15, 2004 10:47 pm Post subject: Windows Boxes can't open SOME websites ?? iptables ? |
|
|
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 |
|
|
EmmEff Apprentice
Joined: 17 Apr 2004 Posts: 197
|
Posted: Tue Nov 16, 2004 4:26 pm Post subject: |
|
|
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 |
|
|
rawacid n00b
Joined: 28 Jan 2004 Posts: 5
|
Posted: Tue Nov 16, 2004 5:36 pm Post subject: Thanx, |
|
|
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 |
|
|
EmmEff Apprentice
Joined: 17 Apr 2004 Posts: 197
|
Posted: Tue Nov 16, 2004 5:44 pm Post subject: |
|
|
255.255.255.0 if you're using 192.168.0.0/24 |
|
Back to top |
|
|
rawacid n00b
Joined: 28 Jan 2004 Posts: 5
|
Posted: Tue Nov 16, 2004 6:40 pm Post subject: still nadda |
|
|
ok the netmask and stuff is fixed but still same problem ;(
any other ideas ??
pleaseee. |
|
Back to top |
|
|
EmmEff Apprentice
Joined: 17 Apr 2004 Posts: 197
|
Posted: Tue Nov 16, 2004 6:45 pm Post subject: |
|
|
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 |
|
|
|