FYI Enchilada fresh install: iptables

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Command:
iptables-restart : I ran this command 3x without changing any rules.

Issue:
Sometime I get none, one or two messages: "iptables: Invalid argument. Run `dmesg' for more information."
I checked the rules, they seem fine.

Cause (?):
It seems to do with how much I wait between running this command, but I am not sure.


Code:
root@vultr:~ $ iptables-restart
iptables: Setting chains to policy ACCEPT: filter mangle   [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
ip6tables: Setting chains to policy ACCEPT: filter         [  OK  ]
ip6tables: Flushing firewall rules:                        [  OK  ]
ip6tables: Unloading modules:                              [  OK  ]
ip6tables: Applying firewall rules:                        [  OK  ]
Stopping fail2ban:                                         [  OK  ]
Starting fail2ban: mkdir: cannot create directory `/var/run/fail2ban': File exists
                                                           [  OK  ]
ln: creating symbolic link `/usr/sbin/iptables': File exists
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
 1384 [============================]
Finished setting permissions
Stopping fail2ban:                                         [  OK  ]
Starting fail2ban: mkdir: cannot create directory `/var/run/fail2ban': File exists
                                                           [  OK  ]
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.


root@vultr:~ $ iptables-restart
iptables: Setting chains to policy ACCEPT: filter mangle   [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
ip6tables: Setting chains to policy ACCEPT: filter         [  OK  ]
ip6tables: Flushing firewall rules:                        [  OK  ]
ip6tables: Unloading modules:                              [  OK  ]
ip6tables: Applying firewall rules:                        [  OK  ]
Stopping fail2ban:                                         [  OK  ]
Starting fail2ban: mkdir: cannot create directory `/var/run/fail2ban': File exists
                                                           [  OK  ]
ln: creating symbolic link `/usr/sbin/iptables': File exists
iptables: Invalid argument. Run `dmesg' for more information.
iptables: Invalid argument. Run `dmesg' for more information.
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
 1384 [============================]
Finished setting permissions
Stopping fail2ban:                                         [  OK  ]
Starting fail2ban: mkdir: cannot create directory `/var/run/fail2ban': File exists
                                                           [  OK  ]
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.


root@vultr:~ $ iptables-restart
iptables: Setting chains to policy ACCEPT: filter mangle   [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
ip6tables: Setting chains to policy ACCEPT: filter         [  OK  ]
ip6tables: Flushing firewall rules:                        [  OK  ]
ip6tables: Unloading modules:                              [  OK  ]
ip6tables: Applying firewall rules:                        [  OK  ]
Stopping fail2ban:                                         [  OK  ]
Starting fail2ban: mkdir: cannot create directory `/var/run/fail2ban': File exists
                                                           [  OK  ]
ln: creating symbolic link `/usr/sbin/iptables': File exists
iptables: Invalid argument. Run `dmesg' for more information.
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
 1384 [============================]
Finished setting permissions
Stopping fail2ban: ^[[A                                    [  OK  ]
Starting fail2ban: mkdir: cannot create directory `/var/run/fail2ban': File exists

                                                           [  OK  ]
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
Lots going on behind the scenes. So long as everything starts, it's nothing to worry about. pbxstatus should show current status of the services.
 

Members online

No members online now.

Forum statistics

Threads
25,810
Messages
167,755
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top