I've followed this guide
http://www.cyberdogtech.com/firewall...php?page=inter till setting up DNS (I've not done that yet).
My cabling goes like this:
--------[VDSL modem]------[home router PC]--[D-link ethernet switch]--[another PC]
All cables are the same RJ-45. My connection is PPPoE. There's two NICs in my router pc.
My /etc/network/interfaces looks like follows
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet ppp
provider dsl
pre-up /sbin/ifconfig eth0 up
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
I use rp-pppoe. (adsl-start etc)
Now /etc/init.d/networking restart brings up my network. I'm sorry I can't at the moment paste my ifconfig's output here, but there is one pppX interface and eth0 and eth1, one having IP 192.168.1.1.
In adsl-setup I tried both setting firewall 0 (not at all) and 1 (desktop usage). I thought 0 would be suitable because of explicit shorewall configuring.
Should I have some special settings on my client Gentoo machine which is connected to the switch? My PPPoE settings are set according to
http://gentoo-wiki.com/HOWTO_Connect_using_PPPoE. I do not use rp-pppoe but instead of that /etc/conf.d/net & /etc/init.d/net.ppp0 thing as shown in HOWTO.
This is from my client computer:
Code:
config_eth0=( "dhcp" )
config_eth1=( "dhcp" )
#modules=( "wpa_supplicant" )
#wpa_supplicant_eth0="-Dipw"
#wpa_timeout_eth0=60
config_ppp0=("ppp")
link_ppp0="eth0"
plugins_ppp0=("pppoe")
username_ppp0='foo'
password_ppp0='example'
pppd_ppp0=("defaultroute" "usepeerdns")
I was able to see from router computer's /var/log/syslog or /var/log/messages that my client computer send a DHCP request to my router when I ran /etc/init.d/net.ppp0, but still I was unable to access the Internet and ifconfig did not show any IP assingned to my network interface.
--- Thanks.