Quote: |
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0 # The primary network interface allow-hotplug eth1 iface eth1 inet dhcp hostname Debian |
Quote: |
domain cg.shawcable.net
search cg.shawcable.net nameserver 64.59.135.133 nameserver 64.59.135.135 nameserver 64.59.128.120 |
Code: |
$ ifconfig -a
$ route |
Code: |
# iptables -v -L -t filter
# iptables -v -L -t mangle # iptables -v -L -t nat |
capi wrote: |
Can you tell me exactly which symptoms are you having? Are you for example able to ping your modem, by IP? Or does the network interface not even get an IP in the first place? |
Quote: | ||
Please try to obtain an Internet connection, then run these commands and paste the output here:
|
Code: |
ifconfig -a |
Quote: | ||
Also, in order to see whether you have any firewall rules configured, please run these as root and paste the output here:
|
JoeS wrote: |
I don't know how to ping the modem. I tried to ping cg.shawcable.net
which is my ISP: Debian:~# ping cg.shawcable.net ping: unknown host cg.shawcable.net |
JoeS wrote: |
I can't get a connection. I used to get a connection with the onboard ethernet
but intermitantly. I used a live CD to run the commands: |
Code: |
ping 209.85.227.103 |
Code: |
/etc/init.d/networking restart |
Code: |
Debian:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:c6:fb:8f:16 inet addr:174.0.184.216 Bcast:255.255.255.255 Mask:255.255.252.0 UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1 RX packets:11513 errors:0 dropped:0 overruns:0 frame:0 TX packets:2348 errors:20 dropped:0 overruns:0 carrier:20 collisions:0 txqueuelen:1000 RX bytes:1520071 (1.4 MiB) TX bytes:324200 (316.6 KiB) Interrupt:17 Base address:0xe800 eth3 Link encap:Ethernet HWaddr 00:a1:b0:10:7f:f1 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:16 Base address:0xec00 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:48 errors:0 dropped:0 overruns:0 frame:0 TX packets:48 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3328 (3.2 KiB) TX bytes:3328 (3.2 KiB) |
Code: |
Debian:~# route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 174.0.184.0 * 255.255.252.0 U 0 0 0 eth0 default 174.0.184.1 0.0.0.0 UG 0 0 0 eth0 |
Code: |
Debian:~# iptables -v -L -t filter
Chain INPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- lo any anywhere anywhere 0 0 bad_packets all -- any any anywhere anywhere 0 0 DROP all -- any any anywhere 224.0.0.1 0 0 ACCEPT all -- eth3 any anywhere anywhere state RELATED,ESTABLISHED 0 0 tcp_inbound tcp -- eth3 any anywhere anywhere 0 0 udp_inbound udp -- eth3 any anywhere anywhere 0 0 icmp_packets icmp -- eth3 any anywhere anywhere 0 0 DROP all -- any any anywhere anywhere PKTTYPE = broadcast 0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `INPUT packet died: ' Chain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy DROP 9 packets, 630 bytes) pkts bytes target prot opt in out source destination 0 0 DROP icmp -- any any anywhere anywhere state INVALID 0 0 ACCEPT all -- any any localhost anywhere 0 0 ACCEPT all -- any lo anywhere anywhere 0 0 ACCEPT all -- any eth3 anywhere anywhere 3 210 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `OUTPUT packet died: ' Chain bad_packets (1 references) pkts bytes target prot opt in out source destination 0 0 LOG all -- any any anywhere anywhere state INVALID LOG level warning prefix `Invalid packet: ' 0 0 DROP all -- any any anywhere anywhere state INVALID 0 0 bad_tcp_packets tcp -- any any anywhere anywhere 0 0 RETURN all -- any any anywhere anywhere Chain bad_tcp_packets (1 references) pkts bytes target prot opt in out source destination 0 0 LOG tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW LOG level warning prefix `New not syn: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG 0 0 LOG tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN 0 0 RETURN tcp -- any any anywhere anywhere Chain icmp_packets (1 references) pkts bytes target prot opt in out source destination 0 0 LOG icmp -f any any anywhere anywhere LOG level warning prefix `ICMP Fragment: ' 0 0 DROP icmp -f any any anywhere anywhere 0 0 DROP icmp -- any any anywhere anywhere icmp echo-request 0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded 0 0 RETURN icmp -- any any anywhere anywhere Chain tcp_inbound (1 references) pkts bytes target prot opt in out source destination 0 0 RETURN tcp -- any any anywhere anywhere Chain tcp_outbound (0 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT tcp -- any any anywhere anywhere Chain udp_inbound (1 references) pkts bytes target prot opt in out source destination 0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-ns 0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-dgm 0 0 ACCEPT udp -- any any anywhere anywhere udp spt:bootps dpt:bootpc 0 0 RETURN udp -- any any anywhere anywhere Chain udp_outbound (0 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT udp -- any any anywhere anywhere |
Code: |
Debian:~# iptables -v -L -t mangle
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain INPUT (policy ACCEPT 2313 packets, 938K bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 2402 packets, 297K bytes) pkts bytes target prot opt in out source destination |
Code: |
Debian:~# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes) pkts bytes target prot opt in out source destination |
Code: |
Debian:~# ping 209.85.227.103
PING 209.85.227.103 (209.85.227.103) 56(84) bytes of data. ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ^C --- 209.85.227.103 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 6999ms Debian:~# iptables -v -L -t filter Chain INPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- lo any anywhere anywhere 0 0 bad_packets all -- any any anywhere anywhere 0 0 DROP all -- any any anywhere 224.0.0.1 0 0 ACCEPT all -- eth3 any anywhere anywhere state RELATED,ESTABLISHED 0 0 tcp_inbound tcp -- eth3 any anywhere anywhere 0 0 udp_inbound udp -- eth3 any anywhere anywhere 0 0 icmp_packets icmp -- eth3 any anywhere anywhere 0 0 DROP all -- any any anywhere anywhere PKTTYPE = broadcast 0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `INPUT packet died: ' Chain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy DROP 9 packets, 630 bytes) pkts bytes target prot opt in out source destination 0 0 DROP icmp -- any any anywhere anywhere state INVALID 0 0 ACCEPT all -- any any localhost anywhere 0 0 ACCEPT all -- any lo anywhere anywhere 0 0 ACCEPT all -- any eth3 anywhere anywhere 3 210 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `OUTPUT packet died: ' Chain bad_packets (1 references) pkts bytes target prot opt in out source destination 0 0 LOG all -- any any anywhere anywhere state INVALID LOG level warning prefix `Invalid packet: ' 0 0 DROP all -- any any anywhere anywhere state INVALID 0 0 bad_tcp_packets tcp -- any any anywhere anywhere 0 0 RETURN all -- any any anywhere anywhere Chain bad_tcp_packets (1 references) pkts bytes target prot opt in out source destination 0 0 LOG tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW LOG level warning prefix `New not syn: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG 0 0 LOG tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST 0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN LOG level warning prefix `Stealth scan: ' 0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN 0 0 RETURN tcp -- any any anywhere anywhere Chain icmp_packets (1 references) pkts bytes target prot opt in out source destination 0 0 LOG icmp -f any any anywhere anywhere LOG level warning prefix `ICMP Fragment: ' 0 0 DROP icmp -f any any anywhere anywhere 0 0 DROP icmp -- any any anywhere anywhere icmp echo-request 0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded 0 0 RETURN icmp -- any any anywhere anywhere Chain tcp_inbound (1 references) pkts bytes target prot opt in out source destination 0 0 RETURN tcp -- any any anywhere anywhere Chain tcp_outbound (0 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT tcp -- any any anywhere anywhere Chain udp_inbound (1 references) pkts bytes target prot opt in out source destination 0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-ns 0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-dgm 0 0 ACCEPT udp -- any any anywhere anywhere udp spt:bootps dpt:bootpc 0 0 RETURN udp -- any any anywhere anywhere Chain udp_outbound (0 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT udp -- any any anywhere anywhere Debian:~# Debian:~# iptables -v -L -t mangle Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain INPUT (policy ACCEPT 2313 packets, 938K bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 2402 packets, 297K bytes) pkts bytes target prot opt in out source destination Debian:~# Debian:~# iptables -v -L -t nat Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes) pkts bytes target prot opt in out source destination |
Code: |
Debian:~# ping 209.85.227.103
PING 209.85.227.103 (209.85.227.103) 56(84) bytes of data. ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ^C --- 209.85.227.103 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 6999ms |
JoeS wrote: | ||
|
JoeS wrote: | ||
|
Code: |
# iptables --policy INPUT DROP
# iptables --policy OUTPUT ACCEPT # iptables --policy FORWARD DROP # iptables --flush # iptables --delete-chain # iptables --append INPUT --in-interface lo --jump ACCEPT # iptables --append INPUT --match state --state RELATED,ESTABLISHED --jump ACCEPT |
Code: |
# ifconfig eth0 down
# ifconfig eth3 174.0.184.216 netmask 255.255.252.0 up # route add default gw 174.0.184.1 |
Code: |
$ ping 64.59.135.133 |
Code: |
$ ping www.example.com |
Code: |
Debian:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:c6:fb:8f:16 inet addr:174.0.176.77 Bcast:255.255.255.255 Mask:255.255.252.0 UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1 RX packets:1963644 errors:0 dropped:0 overruns:0 frame:0 TX packets:729339 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:671188769 (640.0 MiB) TX bytes:50063973 (47.7 MiB) Interrupt:17 Base address:0xe800 eth3 Link encap:Ethernet HWaddr 00:a1:b0:10:7f:f1 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:16 Base address:0xec00 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:256 errors:0 dropped:0 overruns:0 frame:0 TX packets:256 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:365016 (356.4 KiB) TX bytes:365016 (356.4 KiB) |
Code: |
# ifconfig eth3 174.0.176.77 netmask 255.255.252.0 up
# route add default gw 174.0.176.1 |
Code: |
Debian:~# route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 174.0.176.0 * 255.255.252.0 U 0 0 0 eth3 default 174.0.176.1 0.0.0.0 UG 0 0 0 eth3 |
Code: |
Debian:~# ping 64.59.135.133
PING 64.59.135.133 (64.59.135.133) 56(84) bytes of data. From 174.0.176.77 icmp_seq=2 Destination Host Unreachable Debian:~# ping google.com This hangs |
output generated using printer-friendly topic mod, All times are GMT + 2 Hours