Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not get internet sharing working.
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
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Sat Jan 29, 2005 9:41 am    Post subject: Can not get internet sharing working. Reply with quote

I'm trying to set up a Gentoo box as a router for my house. For a while I have been using a Smoothwall box but wanted to do my own with Gentoo. All the machines in my house
work fine with the Smoothwall machine but when I setup the Gentoo box only the server had access to the internet. I tried using different firewall scripts (ipkungfu,
monmotha) but none of them worked. I also followed the Howto on the Gentoo wiki site but that didn't work either. They all produced the same result, no internet on any of the client machines. I plugged my Smoothwall machine back in and everything started working fine again so I'm fairly sure there is nothing wrong with the client setup.

This is /etc/conf.d/net on the server:
Code:

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth1="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"


eth0 is the internal network and eth1 is connected to the internet.
I have all the relevant parts of my kernel compiled in for this.
What am I doing wrong?
Back to top
View user's profile Send private message
sirprize
n00b
n00b


Joined: 23 Mar 2004
Posts: 15
Location: Ulm, Germany

PostPosted: Sat Jan 29, 2005 10:09 am    Post subject: Reply with quote

Hi,
I have some more questions on your setup:

- Do you have internet access on the server machine?
- What does "cat /proc/sys/net/ipv4/ip_forward" say?
- What does "iptables --list" say?
- What does "route -n" say?
- Do your clients use DHCP?
- If not, do they have 192.168.0.1 as their default gateway?
_________________
Join the "Adopt an unanswered post initiative" today and feel good.
Back to top
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Sun Jan 30, 2005 9:08 pm    Post subject: Reply with quote

I followed this guide and now everything works:
http://www.gentoo.org/doc/en/home-router-howto.xml
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