Ubuntu 9.04 network connected but no internet
Panayiotis Ntzamilis
pntzamilis at gmail.com
Wed May 13 21:21:56 BST 2009
> δεν έχεις ούτε καν βασική επικοινωνία IP με τον router σου και επειδή
> αναφέρεις ότι παίρνεις IP οπότε η κάρτα σου και το router θα έπρεπε να
> επικοινωνούνε το πρώτο που μπορώ να σκεφτώ είναι μήπως έχεις κάποιο
> firewall.
panayiotis at panayiotis-laptop:~$ sudo iptables -L
[sudo] password for panayiotis:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
LOG all -- 127.0.0.0/8 anywhere LOG level warning
DROP all -- 127.0.0.0/8 anywhere
DROP all -- anywhere 224.0.0.1
LOG all -- anywhere anywhere LOG level warning
DROP all -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere 224.0.0.1
LOG all -- anywhere anywhere LOG level warning
DROP all -- anywhere anywhere
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
DROP all -- anywhere 224.0.0.1
LOG all -- anywhere anywhere LOG level warning
DROP all -- anywhere anywhere
>
> Αν θυμάμαι καλά μπορείς να σταματήσεις κάθε firewalling με την εντολή
> iptables -F
panayiotis at panayiotis-laptop:~$ sudo iptables -F
> Δοκίμασε την και μετά ξανάδωσε τα 3 pings:
> ping -c 3 192.168.1.1
panayiotis at panayiotis-laptop:~$ ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2015ms
> ping -c 3 209.85.229.99
panayiotis at panayiotis-laptop:~$ ping -c 3 209.85.229.99
PING 209.85.229.99 (209.85.229.99) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
--- 209.85.229.99 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2014ms
> ping -c 3 www.google.com
>
> Aν δεν παίξει κάποιο από τα 2 πρώτα δώσε μας την έξοδο των εντολών
> ping -c 1 localhost
panayiotis at panayiotis-laptop:~$ ping -c 1 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
--- localhost ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
> cat /etc/network/interfaces
auto lo
iface lo inet loopback
> ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:02:b9:20:9e
UP 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)
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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)
wlan0 Link encap:Ethernet HWaddr 00:1a:70:2f:69:0d
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21a:70ff:fe2f:690d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1796 (1.7 KB) TX bytes:1413 (1.4 KB)
wmaster0 Link encap:UNSPEC HWaddr
00-1A-70-2F-69-0D-39-30-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING 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)
> iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
pan0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:"P-1510"
Mode:Managed Frequency:2.462 GHz Access Point: 00:18:39:28:E5:D4
Bit Rate=1 Mb/s Tx-Power=4 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Power Management:off
Link Quality=72/100 Signal level:-44 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
> iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy DROP)
target prot opt source destination
>
> --
> "The software is licensed, not sold" -- MICROSOFT LICENSE TERMS
>
More information about the Ubuntu-gr
mailing list