Guest mdkroby Posted December 31, 2005 Report Share Posted December 31, 2005 Hi, first of all I have to tell that I'm absolutely beginners about network (so very probably also the exposition of the problems will be not very detailed, sorry). Just for that, I already checked the tips in the thread pinned at the top of this forum and some previous forum msgs, without finding the answer to my problem. I have a desktop PC with 2 ethernet cards: eth0 (192.168.0.1 obelix) is used for the my "home-lan", basically to connect with my work laptop (WinXP 192.168.0.99). Eth1 (IP via dhcp 192.168.1.2) is used to connect to my Internet adsl-modem(dhcpd). For the desktop, internet connection is working very well. I use Firestarter as firewall. Now the problems : 1 - I can ping from the laptop to desktop, but I cannot ping from desktop to laptop. From (obelix) Desktop : ping 192.168.0.99 PING 192.168.0.99 (192.168.0.99) 56(84) bytes of data There is no answer, I have to do a ctrl-C to free the terminal !!! Why ??? 2 - How to share the Internet connection, so to have the possibility to surf the web also for the laptop connected to the linux-box? In principle I (try to) did what is explained in the thread pinned at the top of this forum, without succes. I report here the results of my ifconfig eth0 Link encap:Ethernet HWaddr 00:50:8D:47:03:A0 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::250:8dff:fe47:3a0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:139 errors:0 dropped:0 overruns:0 frame:0 TX packets:96 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14598 (14.2 KiB) TX bytes:9250 (9.0 KiB) Interrupt:19 Base address:0x4000 eth1 Link encap:Ethernet HWaddr 00:0A:5E:3F:F0:2C inet addr:192.168.1.2 Bcast:255.255.255.255 Mask:255.255.255.224 inet6 addr: fe80::20a:5eff:fe3f:f02c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3018 errors:0 dropped:0 overruns:0 frame:0 TX packets:2579 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1312764 (1.2 MiB) TX bytes:436217 (425.9 KiB) Interrupt:20 Base address:0xa400 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:13 errors:0 dropped:0 overruns:0 frame:0 TX packets:13 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:800 (800.0 b) TX bytes:800 (800.0 b) ppp0 Link encap:Point-to-Point Protocol inet addr:87.4.137.79 P-t-P:192.168.100.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:2851 errors:0 dropped:0 overruns:0 frame:0 TX packets:2410 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:1237966 (1.1 MiB) TX bytes:371977 (363.2 KiB) vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01 inet addr:172.16.164.1 Bcast:172.16.164.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08 inet addr:172.16.148.1 Bcast:172.16.148.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.100.1 * 255.255.255.255 UH 20 0 0 ppp0 192.168.1.0 * 255.255.255.224 U 10 0 0 eth1 172.16.148.0 * 255.255.255.0 U 0 0 0 vmnet8 172.16.164.0 * 255.255.255.0 U 0 0 0 vmnet1 192.168.0.0 * 255.255.255.0 U 10 0 0 eth0 default 192.168.100.1 0.0.0.0 UG 0 0 0 ppp0 iptables Chain INBOUND (4 references) target prot opt source destination ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT udp -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT all -- 192.168.0.99 anywhere LSI all -- anywhere anywhere Chain INPUT (policy DROP) target prot opt source destination ACCEPT tcp -- nsp-mi2.interbusiness.it anywhere tcp flags:!FIN,SYN,RST,ACK/SYN ACCEPT udp -- nsp-mi2.interbusiness.it anywhere ACCEPT tcp -- ns.interbusiness.it anywhere tcp flags:!FIN,SYN,RST,ACK/SYN ACCEPT udp -- ns.interbusiness.it anywhere ACCEPT tcp -- nsp-mi2.interbusiness.it anywhere tcp flags:!FIN,SYN,RST,ACK/SYN ACCEPT udp -- nsp-mi2.interbusiness.it anywhere ACCEPT tcp -- ns.interbusiness.it anywhere tcp flags:!FIN,SYN,RST,ACK/SYN ACCEPT udp -- ns.interbusiness.it anywhere ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5 ACCEPT icmp -- anywhere anywhere icmp echo-reply limit: avg 1/sec burst 5 LSI udp -- anywhere anywhere udp dpt:traceroute LSI icmp -- anywhere anywhere DROP all -- anywhere 255.255.255.255 DROP all -- BASE-ADDRESS.MCAST.NET/8 anywhere DROP all -- anywhere BASE-ADDRESS.MCAST.NET/8 DROP all -- 255.255.255.255 anywhere DROP all -- anywhere 0.0.0.0 DROP all -- anywhere anywhere state INVALID LSI all -f anywhere anywhere limit: avg 10/min burst 5 INBOUND all -- anywhere anywhere INBOUND all -- anywhere 192.168.0.1 INBOUND all -- anywhere host212-165.pool872.interbusiness.it INBOUND all -- anywhere 192.168.0.255 LOG_FILTER all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Unknown Input' Chain FORWARD (policy DROP) target prot opt source destination ACCEPT icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5 ACCEPT icmp -- anywhere anywhere icmp echo-reply limit: avg 1/sec burst 5 LSI udp -- anywhere anywhere udp dpt:traceroute LSI icmp -- anywhere anywhere TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU OUTBOUND all -- anywhere anywhere ACCEPT tcp -- anywhere 192.168.0.0/24 state RELATED,ESTABLISHED ACCEPT udp -- anywhere 192.168.0.0/24 state RELATED,ESTABLISHED LOG_FILTER all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Unknown Forward' Chain LOG_FILTER (5 references) target prot opt source destination Chain LSI (6 references) target prot opt source destination LOG_FILTER all -- anywhere anywhere LOG tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 1/sec burst 5 LOG level info prefix `Inbound ' DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN LOG tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5 LOG level info prefix `Inbound ' DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST LOG icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5 LOG level info prefix `Inbound ' DROP icmp -- anywhere anywhere icmp echo-request LOG all -- anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Inbound ' DROP all -- anywhere anywhere Chain LSO (0 references) target prot opt source destination LOG_FILTER all -- anywhere anywhere LOG all -- anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Outbound ' REJECT all -- anywhere anywhere reject-with icmp-port-unreachable Chain OUTBOUND (3 references) target prot opt source destination ACCEPT icmp -- anywhere anywhere ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT udp -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT all -- anywhere anywhere Chain OUTPUT (policy DROP) target prot opt source destination ACCEPT tcp -- host212-165.pool872.interbusiness.it nsp-mi2.interbusiness.it tcp dpt:domain ACCEPT udp -- host212-165.pool872.interbusiness.it nsp-mi2.interbusiness.it udp dpt:domain ACCEPT tcp -- host212-165.pool872.interbusiness.it ns.interbusiness.it tcp dpt:domain ACCEPT udp -- host212-165.pool872.interbusiness.it ns.interbusiness.it udp dpt:domain ACCEPT tcp -- host212-165.pool872.interbusiness.it nsp-mi2.interbusiness.it tcp dpt:domain ACCEPT udp -- host212-165.pool872.interbusiness.it nsp-mi2.interbusiness.it udp dpt:domain ACCEPT tcp -- host212-165.pool872.interbusiness.it ns.interbusiness.it tcp dpt:domain ACCEPT udp -- host212-165.pool872.interbusiness.it ns.interbusiness.it udp dpt:domain ACCEPT all -- anywhere anywhere DROP all -- BASE-ADDRESS.MCAST.NET/8 anywhere DROP all -- anywhere BASE-ADDRESS.MCAST.NET/8 DROP all -- 255.255.255.255 anywhere DROP all -- anywhere 0.0.0.0 DROP all -- anywhere anywhere state INVALID OUTBOUND all -- anywhere anywhere OUTBOUND all -- anywhere anywhere LOG_FILTER all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Unknown Output' The strange (for me), is that from a virtual OS in vmplayer(nat connection) I CAN surf the web!!! I cannot do it from my laptop ! Why??!! Also shutdown the Firewall, both these 2 problems persist . Thanks in advance and sorry for the looong post . Quote Link to comment Share on other sites More sharing options...
buccaneer Posted January 13, 2006 Report Share Posted January 13, 2006 (edited) 1st things 1st does your laptop have a firewall or some form of security that is stopping it from replying to the ping? if so turn it off or loosen its rules at least. Also, have you tried? ping -c 4 -W 1 (address) this will ping (address) 4 times with a time out of 1 second. Edited January 13, 2006 by buccaneer 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.