There is a script "/etc/init.d/masquerade...sh" (in Ubuntu systems anyway) that is a good example to create your own iptables script. After you create a script put it under /etc/init.d/ and create a sym link in /etc/rc2.d (eg: /etc/rc2.d/S95myownTablesScript).
On Feb 26, 2:57 am, dacoman <[email protected]> wrote: > Hello, > > I'm running 8.10 and I'm using UFW, with some hand added iptables > rules to block specific IP addresses. > > My problem is that when I restart or just restart the iptables the > hand-added rules disapear and I have to reinstate them. > > My question is: Is there a way to have these rules save and reinstated > after restarts/reboots. > > Thank you, > -D --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ubuntu Linux" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ubuntulinux?hl=en -~----------~----~----~----~------~----~------~--~---
