Guest Singing Banzo Posted July 13, 2004 Report Share Posted July 13, 2004 (edited) Hi people, my first post here, after reading a some answers, close to my problem, but not useful to solve it. I read some mini how-tos also. I installed Mandrake 10 ("higher" security scheme) and the first thing I need to do is to share my ADSL internet connection. Two nics, both working fine, internet connection up, so I simply went to Mandrakelinux Control Center -> Network & Internet -> Internet connection sharing, answer the couple of questions, and I though I was done, but... nope, I can't even make a ping: [root@localhost bin]# ping 192.168.1.2 PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data. From 192.168.1.1 icmp_seq=1 Destination Host Unreachable From 192.168.1.1 icmp_seq=1 Destination Host Unreachable From 192.168.1.1 icmp_seq=1 Destination Host Unreachable From 192.168.1.1 icmp_seq=1 Destination Host Unreachable From 192.168.1.1 icmp_seq=1 Destination Host Unreachable From 192.168.1.1 icmp_seq=1 Destination Host Unreachable ping: sendmsg: Operation not permitted From 192.168.1.1 icmp_seq=2 Destination Host Unreachable ping: sendmsg: Operation not permitted From 192.168.1.1 icmp_seq=3 Destination Host Unreachable ping: sendmsg: Operation not permitted From 192.168.1.1 icmp_seq=4 Destination Host Unreachable ping: sendmsg: Operation not permitted From 192.168.1.1 icmp_seq=5 Destination Host Unreachable ping: sendmsg: Operation not permitted From 192.168.1.1 icmp_seq=6 Destination Host Unreachable ping: sendmsg: Operation not permitted --- 192.168.1.2 ping statistics --- 6 packets transmitted, 0 received, +11 errors, 100% packet loss, time 5064ms Any idea what could be wrong? Here the details: Linux Box: [root@localhost bin]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0A:E6:B0:A1:C8 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20a:e6ff:feb0:a1c8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1560 (1.5 Kb) TX bytes:476 (476.0 b) Interrupt:11 Base address:0xd000 eth1 Link encap:Ethernet HWaddr 00:08:54:11:B1:E6 inet6 addr: fe80::208:54ff:fe11:b1e6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2342 errors:0 dropped:0 overruns:0 frame:0 TX packets:2565 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:833596 (814.0 Kb) TX bytes:289198 (282.4 Kb) Interrupt:11 Base address:0xdf00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:523 errors:0 dropped:0 overruns:0 frame:0 TX packets:523 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43982 (42.9 Kb) TX bytes:43982 (42.9 Kb) ppp0 Link encap:Point-to-Point Protocol inet addr:200.55.xxx.xxx P-t-P:200.32.0.14 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:2185 errors:0 dropped:0 overruns:0 frame:0 TX packets:2403 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:776044 (757.8 Kb) TX bytes:226470 (221.1 Kb) The other machine is a WinXP, connected via hub (hardware works fine): IP (static): 192.168.1.2 Netmask: 255.255.255.0 Gateway: 192.168.1.1 I also tried with dynamic IP, but it can't find the DHCP server. When I ping 192.168.1.1 from the WinXP, I get "host unreachable". As a side note, I tried Coyote Linux with the same parameters, and worked like a charm. :( Thank you in advance. SB. Edited July 14, 2004 by Singing Banzo Quote Link to comment Share on other sites More sharing options...
streeter Posted July 13, 2004 Report Share Posted July 13, 2004 You don't have an IP address set for eth1. Unfortunately, the Mdk internet connection sharing wizard can be a little unreliable at times... Have you had a look at the sticky post at the top of the networking forum yet? There is a howto link there that should help. Chris Quote Link to comment Share on other sites More sharing options...
Guest Singing Banzo Posted July 13, 2004 Report Share Posted July 13, 2004 But eth1 is the nic connected to the modem, and I have Internet working fine in the Linux box. (perhaps this is a newbie answer) I just saw the pinned post :P, I will follow the procedure tonigh (now I'm at work), and tell you about any progress. Thank you for the fast answer. SB. Quote Link to comment Share on other sites More sharing options...
streeter Posted July 13, 2004 Report Share Posted July 13, 2004 I am paying attention this time :) You don't have a router and are using ppp(OE?). I don't know much about this set-up - I have never used it. What you need to do is masquerade eth0 behind your ppp connection - otherwise known as network address translation. This should work: Put the following command at the beginning of /etc/sysctl.conf net.ipv4.ip_forward=1 Then 'turn off' the redirection to squid that mandrake will have done for you and set up masquerading: Install iptables - type "urpmi iptables", or use the package manager in the start menu or mcc Add the following code to the bottom of /etc/rc.d/rc.local: iptables -t nat -D PREROUTING -i eth0 -j loc_dnat iptables -t nat -A PREROUTING -i eth0 -o ppp+ -s 192.168.1.0/24 -d 0/0 -j MASQUERADE Don't worry if you get an error for the first line. Reboot and let me know if it works... Chris Quote Link to comment Share on other sites More sharing options...
Guest Singing Banzo Posted July 14, 2004 Report Share Posted July 14, 2004 Well, I still don't understand very well what you make me do (just enough to change eth0 by eth1), but IT WORKS! =) Thank you very much. :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.