Re: NFS and iptables during bootup

2014-08-10 Thread Tom H
On Sat, Aug 9, 2014 at 3:40 PM, Martin T m4rtn...@gmail.com wrote: On Sat, Aug 9, 2014 at 6:33 AM, Tom H tomh0...@gmail.com wrote: On Fri, Aug 8, 2014 at 11:47 AM, Martin T m4rtn...@gmail.com wrote: I moved the script from /etc/init.d to /etc/network directory and changed the shebang line

Re: NFS and iptables during bootup

2014-08-10 Thread Pascal Hambourg
Tom H a écrit : Please bottom-post. Please don't. It's annoying to have to scroll down all the (needlessly) quoted text to read your reply. Top-posting is bad, but bottom-posting without trimming a long quoted text is worse. Consider interleaved/inline posting with proper trimming instead.

Re: NFS and iptables during bootup

2014-08-09 Thread Martin T
Yes, I erroneously used lo0 instead of lo in iptables rules. I use FreeBSD on daily basis :) However, once I allowed traffic to loopback interface and started NFS(/etc/init.d/nfs-common start), I saw some traffic on loopback interface: 48 560 ACCEPT all -- lo * 0.0.0.0/0

Re: NFS and iptables during bootup

2014-08-08 Thread Martin T
Reco, I moved the script from /etc/init.d to /etc/network directory and changed the shebang line from /bin/bash to /bin/sh. /bin/sh on my system points to /bin/dash. Thanks for those tips! Content of firewall rule-files can be seen here: # cat /etc/firewall.conf /etc/firewall6.conf # Generated

Re: NFS and iptables during bootup

2014-08-08 Thread Rob Owens
- Original Message - From: Martin T m4rtn...@gmail.com Hi, I made a very simple bash script which loads the iptables configuration from /etc/firewall.conf and /etc/firewall6.conf files: # cat /etc/init.d/firewall #!/bin/bash iptables-restore /etc/firewall.conf

Re: NFS and iptables during bootup

2014-08-08 Thread Tom H
On Fri, Aug 8, 2014 at 11:47 AM, Martin T m4rtn...@gmail.com wrote: I moved the script from /etc/init.d to /etc/network directory and changed the shebang line from /bin/bash to /bin/sh. /bin/sh on my system points to /bin/dash. Thanks for those tips! Content of firewall rule-files can be

NFS and iptables during bootup

2014-08-04 Thread Martin T
Hi, I made a very simple bash script which loads the iptables configuration from /etc/firewall.conf and /etc/firewall6.conf files: # cat /etc/init.d/firewall #!/bin/bash iptables-restore /etc/firewall.conf ip6tables-restore /etc/firewall6.conf # Script is stored in /etc/init.d/ directory,

Re: NFS and iptables during bootup

2014-08-04 Thread Reco
Hi. On Mon, Aug 04, 2014 at 05:52:43PM +0300, Martin T wrote: Hi, I made a very simple bash script which loads the iptables configuration from /etc/firewall.conf and /etc/firewall6.conf files: # cat /etc/init.d/firewall #!/bin/bash iptables-restore /etc/firewall.conf

Re: NFS and iptables during bootup

2014-08-04 Thread Tom H
On Mon, Aug 4, 2014 at 10:52 AM, Martin T m4rtn...@gmail.com wrote: I made a very simple bash script which loads the iptables configuration from /etc/firewall.conf and /etc/firewall6.conf files: # cat /etc/init.d/firewall #!/bin/bash iptables-restore /etc/firewall.conf ip6tables-restore