Results 1 to 3 of 3

Thread: iptables not refreshed when changing network

  1. #1
    Join Date
    Aug 2008
    Location
    London, UK
    Beans
    105
    Distro
    Ubuntu 10.04 Lucid Lynx

    iptables not refreshed when changing network

    My laptop has been happily running Ubuntu for several years and thanks to NetworkManager, I regularly connect to the net through a variety or wired and wireless networks as well as a 3G modem.

    When I booted the machine this morning, it could not connect at all even though it was showing good reception to the wireless network. I had that message when pinging the router:

    bruno@nuuk:~/downloads/afros$ ping 192.168.1.254
    PING 192.168.1.254 (192.168.1.254) 56(84) bytes of data.
    ping: sendmsg: Operation not permitted

    Searching on Google (from another computer), I found out that it was due to an issue with iptables: running ipmasq with no parameters re-initialised the iptables and resolved the problem.

    However, it looks like I now need to run ipmasq manually every time my network interface is brought up. Is there any way to automate it?

  2. #2
    Join Date
    Nov 2007
    Location
    London, UK
    Beans
    75
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: iptables not refreshed when changing network

    Hello,

    I would suggest looking here for a start:

    http://ubuntuforums.org/showthread.php?t=159661

    But the command you are looking for would be:

    Code:
    sudo update-rc.d firewall defaults
    Please realise that "firewall" above refers to a script you would create like on the example page above. It could be another name of your choosing.

    Hope that helps!
    Ubuntu on PC; Ubuntu on iMac; Ubuntu everywhere

  3. #3
    Join Date
    Aug 2008
    Location
    London, UK
    Beans
    105
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: iptables not refreshed when changing network

    Thanks canadiandude007!

    I actually found what the original problem was: ipmasq was installed as a dependency when I installed ARAnyM, which I just wanted to try out. What I've done so far is remove ARAnyM as well as ipmasq and it all works perfectly again. I will definitely have a look at the thread you suggest when I have the time as I'd be quite interested in understanding how iptables work.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •