Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Having problems with the Home Router Guide
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
planetsheinker
Guru
Guru


Joined: 26 Feb 2004
Posts: 403
Location: Israel

PostPosted: Mon Oct 10, 2005 12:04 pm    Post subject: Having problems with the Home Router Guide Reply with quote

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
View user's profile Send private message
AngelM
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2004
Posts: 139
Location: Erlangen

PostPosted: Mon Oct 10, 2005 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
planetsheinker
Guru
Guru


Joined: 26 Feb 2004
Posts: 403
Location: Israel

PostPosted: Mon Oct 10, 2005 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Mon Oct 10, 2005 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
planetsheinker
Guru
Guru


Joined: 26 Feb 2004
Posts: 403
Location: Israel

PostPosted: Thu Oct 20, 2005 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
larand54
l33t
l33t


Joined: 20 Feb 2004
Posts: 695
Location: Sweden

PostPosted: Tue Jan 03, 2006 8:35 am    Post subject: Reply with quote

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
View user's profile Send private message
planetsheinker
Guru
Guru


Joined: 26 Feb 2004
Posts: 403
Location: Israel

PostPosted: Tue Jan 03, 2006 2:32 pm    Post subject: Reply with quote

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
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