PDA

View Full Version : Help me setup Dataone in Sabayon 1.1 Pro Edition | Firewall


rahimveron
08-08-2008, 05:26 PM
Brothers i have installed Sabayon 1.1 Pro Edition in my office PC. I used pppoe-setup to configure my Dataone and entered correct values ( have used this in Fedora & Arch too).
I connect twith pppoe-start and and did ifconfig and found ppp0 connected.
But i am not able to open any site (used firefox & konqueror). So i thought may Kmyfirewall is blocking me so i uninstalled it :p and reconfigured Dataone and this time chose "1" as firewall setup in pppoe-setup but the problem persists.
SO i came back to Arch setup and used pppoe-setup and everything was fine.
I read Gentoo Network wiki (http://gentoo-wiki.com/HOWTO_Connect_using_PPPoE) and all stuff but it just doent work, though it connects as shown by o/p of ifconfig below
ppp0 Link encap:Point-to-Point Protocol
inet addr:59.93.206.119 P-t-P:59.93.192.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3045 errors:0 dropped:0 overruns:0 frame:0
TX packets:2795 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2514542 (2.3 Mb) TX bytes:638401 (623.4 Kb)

eth0 Link encap:Ethernet HWaddr 00:11:11:0D:5E:DB
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3132 errors:0 dropped:0 overruns:0 frame:0
TX packets:2910 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2588074 (2.4 Mb) TX bytes:708072 (691.4 Kb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6000 (5.8 Kb) TX bytes:6000 (5.8 Kb)

I am sure it some firewall jhol-jhaal, so how should i go about stopping iptables and configure Datone.
I can ping my router (utstar200R)
Plz help

mehulved
08-08-2008, 06:24 PM
Check iptables rules

iptables -L

Remove a service from startup

rc-config delete <servicename> default

Why is there an address associated with eth0, if I remember correctly, if you're using ppp then eth0 will not have any address.

rahimveron
08-08-2008, 07:59 PM
This is my iptables -L o/p
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

I dont know anything about iptables.

What is the purpose of the removing the service and what service to remove??
Will that revert iptables service to default?

mehulved
08-08-2008, 08:30 PM
There are no iptables rules. It's not a firewall problem then. Start looking towards your network setup.

rahimveron
09-08-2008, 10:45 AM
I was fiddling in the Live Mode and used this as PPP configuration Basic Setup File: /etc/conf.d/net
config_eth0=( "null" )

config_ppp0=( "ppp" )
link_ppp0="eth0"
plugins_ppp0=( "pppoe" )

username_ppp0='your-ISP-username-here'
password_ppp0='your-ISP-password-here'

pppd_ppp0=(

"noauth"
"defaultroute"
"usepeerdns"
"default-asyncmap"
"ipcp-accept-remote"
"ipcp-accept-local"
"lcp-echo-interval 15"
"lcp-echo-failure 3"
"mru 1492"
"mtu 1492"
"debug"
)
but it didnt work. SO i used this config_eth0=( "dhcp" )
dhcp_eth0="release nodns nontp nonis nogateway nosendhost"
and started the connection /etc/conf.d/net.ppp0 start and after some seconds i was able to connect and surf :)

But when i used the same procedure in the actual installed-system, it did the same tantrums. Getting connected but no luck with surfing .The light on my modem blinks as if data is passing through but....

mehulved
09-08-2008, 03:28 PM
You either configure to use ppp or dhcp, not both.
Can you explain how you configure your connection in other distros?
Also check route

route -n

And try pinging the available gateway(s).

T159
09-08-2008, 03:38 PM
or
netstat -r
http://s269.photobucket.com/albums/jj44/visio159/Unismilies/74.png

rahimveron
09-08-2008, 08:14 PM
Well i used pppoe-setup in my Arch Linux box, so i tried that in Sabayon and then did the Modular Networking way as described in Gentoo Wiki and it did work ONCE in Live Mode but thats it.

@mehulved: So what changes should i do in those files??

mehulved
10-08-2008, 01:21 AM
remove the last couple of lines related to eth0, it shouldn't be configured.
Maybe you haven't added ppp0 in the list of network interfaces to be started at boot up?