Author Topic: where to put custom iptables rules in eBox 0.10.99  (Read 2243 times)

asphyx

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
where to put custom iptables rules in eBox 0.10.99
« on: April 10, 2008, 03:08:31 pm »

I'v tryed to use custom iptables rules but after reboot they were not saved.
I'v tryed iptables-save and iptables-restore before reboot.

andradeam

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: where to put custom iptables rules in eBox 0.10.99
« Reply #1 on: May 17, 2008, 03:22:07 am »
i have the same problem, any ideias ?????????????

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: where to put custom iptables rules in eBox 0.10.99
« Reply #2 on: May 17, 2008, 06:05:09 pm »
In order to configure custom iptables rules, you may edit the /usr/share/perl5/EBox/Iptables.pm at line 375 in sub start and code like the next example:

Code: [Select]
# pf is the sub to call iptables command
# "<stuff>" is the iptables arguments
pf "-A ftoexternalonly -j fdrop";

Hope this helps.
My secret is my silence...