View previous topic :: View next topic |
Author |
Message |
planetsheinker Guru
Joined: 26 Feb 2004 Posts: 403 Location: Israel
|
Posted: Mon Oct 10, 2005 12:04 pm Post subject: Having problems with the Home Router Guide |
|
|
I have followed the Home Router Guide, twice, (!)
with not much luck.
I have two boxes, one has Gentoo+eth0 looking to the LAN+eth1 connected to ADSL modem, the other box has
win xp+ethernet card lookin to the LAN. Win xp's ethernet card can get IP adress from the Gentoo DHCP daemon
(dnsmasq) but no internet connection , IE keep's saying in the lower left cornet: Connecting to 65.234.672.34 adress...
(or any other numbers, depends what adress I type).
Does any body has any ideas, I desperetly need help please! _________________ Does God made man up, or was it the other way around? - Friedrich Nietzsche.
Last edited by planetsheinker on Thu Oct 20, 2005 12:17 pm; edited 2 times in total |
|
Back to top |
|
|
AngelM Tux's lil' helper
Joined: 07 Dec 2004 Posts: 139 Location: Erlangen
|
Posted: Mon Oct 10, 2005 12:22 pm Post subject: |
|
|
Du set the kernel routing options?
Quote: | Tell the kernel that ip forwarding is OK
# echo 1 > /proc/sys/net/ipv4/ip_forward
# for f in /proc/sys/net/ipv4/conf/*/rp_filter ; do echo 1 > $f ; done |
I forgot this two times and wondering why it not works... |
|
Back to top |
|
|
planetsheinker Guru
Joined: 26 Feb 2004 Posts: 403 Location: Israel
|
Posted: Mon Oct 10, 2005 12:25 pm Post subject: |
|
|
AngelM wrote: | Du set the kernel routing options?
Quote: | Tell the kernel that ip forwarding is OK
# echo 1 > /proc/sys/net/ipv4/ip_forward
# for f in /proc/sys/net/ipv4/conf/*/rp_filter ; do echo 1 > $f ; done |
I forgot this two times and wondering why it not works... |
Yes offcourse, just like the guide says. _________________ Does God made man up, or was it the other way around? - Friedrich Nietzsche. |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Mon Oct 10, 2005 1:35 pm Post subject: |
|
|
I read your first post on OTW asking for suggestions on how to do this. I would say to use Shorewall (it's in portage) instead of doing it manually. Shorewall has been around for a long time and has been tested thoroughly. The Shorewall website has excellent documentation to help you get started. You probably should start with the Two Interface HOWTO:
http://www.shorewall.net/two-interface.htm _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
planetsheinker Guru
Joined: 26 Feb 2004 Posts: 403 Location: Israel
|
Posted: Thu Oct 20, 2005 12:21 pm Post subject: |
|
|
curtis119 wrote: | I read your first post on OTW asking for suggestions on how to do this. I would say to use Shorewall (it's in portage) instead of doing it manually. Shorewall has been around for a long time and has been tested thoroughly. The Shorewall website has excellent documentation to help you get started. You probably should start with the Two Interface HOWTO:
http://www.shorewall.net/two-interface.htm |
Decided to follow your advice after all.
I followed the two-interface tutorial, to the last letter, and it did not help
The windows box still cant connect to the internet, cant ping and cant resolve DNS
P.S.
The tutorial says nothing about configuring the NIC card on the windows box, so I emerged dhcp on the linux box
and used this configuration file:
Code: | ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.116.202.222, 213.8.172.83;
option ip-forwarding off;
range dynamic-bootp 192.168.0.100 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
} |
Is this right? _________________ Does God made man up, or was it the other way around? - Friedrich Nietzsche. |
|
Back to top |
|
|
larand54 l33t
Joined: 20 Feb 2004 Posts: 695 Location: Sweden
|
Posted: Tue Jan 03, 2006 8:35 am Post subject: |
|
|
planetsheinker wrote: |
P.S.
The tutorial says nothing about configuring the NIC card on the windows box, so I emerged dhcp on the linux box
and used this configuration file:
Code: | ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.116.202.222, 213.8.172.83;
option ip-forwarding off;
range dynamic-bootp 192.168.0.100 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
} |
Is this right? |
You've probably got things to work now or...
I just have to ask you what you have done. As I can se from above you are disabling ip-forwarding
Code: |
option ip-forwarding off;
|
Anyhow, you should check wheter the ip-forwarding is on or of:
Code: | cat /proc/sys/net/ipv4/ip_forward |
You should get an "1" in response if forwarding is active.
regards
larand54 |
|
Back to top |
|
|
planetsheinker Guru
Joined: 26 Feb 2004 Posts: 403 Location: Israel
|
Posted: Tue Jan 03, 2006 2:32 pm Post subject: |
|
|
To larand54:
I gave up Shorewall
I followed the guied on their website, to the last letter, and no luck.
The windows box can get an IP adress from the dhcpd on the linux box,
but still no internet
But then i found firestarter (http://www.fs-security.com/).
but I am not very fond of it...
I wanted something without GUI, for the "geek" filling... _________________ Does God made man up, or was it the other way around? - Friedrich Nietzsche. |
|
Back to top |
|
|
|