10

The problem is out of my league apparently, Ubuntu cannot access any network but somehow my VMs using virtual box are all able to access the internet. I have attempted to do the following changes but as you can this was not successful. I am very confused as to what is wrong on my box. Any help appreciated.

carl@carl-Latitude-E6410:~$ sudo ip6tables -P INPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo ip6tables -P OUTPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo ip6tables -P FORWARD ACCEPT
carl@carl-Latitude-E6410:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1008ms
carl@carl-Latitude-E6410:~$ sudo iptables -P INPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo iptables -P OUTPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo iptables -P FORWARD ACCEPT
carl@carl-Latitude-E6410:~$ sudo service iptables restart
iptables: unrecognized service
carl@carl-Latitude-E6410:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1008ms
2
  • 2
    Do iptables --flush and try again.
    – Nathan C
    May 9, 2014 at 14:53
  • 1
    Flushing the iptables did work. I have conflicting ip rules that came with the cisco VPN client... anyways after flushing and reinstalling the client all is good and back to normal.
    – Stainedart
    May 12, 2014 at 15:47

1 Answer 1

10

IPtables sometimes gets a little...wonky and there's many rules that don't get removed or get left befind.

Try iptables --flush to delete all your iptables rules.

1
  • 5
    iptables --flush deletes all your firewall rules. So yes, it will remove firewall related problems, but is that really what you wanted to do? Dec 1, 2014 at 16:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .