Results 1 to 2 of 2

Thread: Ubuntu 12.04 - ip tables masquerading made permanent

  1. #1
    Join Date
    Oct 2010
    Location
    South Africa
    Beans
    14
    Distro
    Ubuntu 10.04 Lucid Lynx

    Ubuntu 12.04 - ip tables masquerading made permanent

    How do I make the following ip tables rule permanent on 12.04? It looses the rule when I reboot.

    sudo iptables -t nat -A POSTROUTING -s 10.10.0.0/16 -o ppp0 -j MASQUERADE

    Thanks

    I have tried:

    sudo iptables-save > /etc/iptables.up.rules

    with the result:

    bash: /etc/iptables.up.rules: Permission denied

  2. #2
    Join Date
    Oct 2010
    Location
    South Africa
    Beans
    14
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Ubuntu 12.04 - ip tables masquerading made permanent

    What I have done, that seems to work for now is enter the rule into /etc/rc.local

    Is there a better way?

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
  •