View previous topic :: View next topic |
Author |
Message |
lizardloop Apprentice

Joined: 16 Mar 2003 Posts: 278
|
Posted: Sat Jan 29, 2005 9:41 am Post subject: Can not get internet sharing working. |
|
|
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 |
|
 |
sirprize n00b


Joined: 23 Mar 2004 Posts: 15 Location: Ulm, Germany
|
Posted: Sat Jan 29, 2005 10:09 am Post subject: |
|
|
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 |
|
 |
lizardloop Apprentice

Joined: 16 Mar 2003 Posts: 278
|
|
Back to top |
|
 |
|