Simplicity
Dabbler
- Joined
- Jun 13, 2015
- Messages
- 28
I cannot get IPFW rules to load. My prev ipfw.rules file doesnt want to load in new Deluge jail running ipfw in iocage.
I installed bash and afew other packages hoping to get it to work. OpenVPN works fine, Deluge works fine, tested external ping and it is using my VPN. Jail is VNET0
Really need a Killswitch to work. I tried a ton online and they all give same error
firewall_enable="YES"
firewall_script="/etc/ipfw.rules"
Any help would be amazing!
My errors are:
My IPFW rules are below
I installed bash and afew other packages hoping to get it to work. OpenVPN works fine, Deluge works fine, tested external ping and it is using my VPN. Jail is VNET0
Really need a Killswitch to work. I tried a ton online and they all give same error
firewall_enable="YES"
firewall_script="/etc/ipfw.rules"
Any help would be amazing!
My errors are:
Code:
[root@deluge ~]# service ipfw start 'pfw: bad command `flush :not foundules: not foundules: ipfw: invalid action :not foundules: ipfw: invalid action :not foundules: ipfw: invalid action :not foundules: ipfw: invalid action :not foundules: ipfw: invalid action ipfw: invalid action Firewall rules loaded
My IPFW rules are below
Code:
#!/bin/bash # Flush out the list before we begin ipfw -q -f flush # Set rules command prefix cmd="ipfw -q add " vpn="tun0" # allow all local traffic on the loopback interface $cmd 00001 allow all from any to any via lo0 # allow any connection to/from VPN interface $cmd 00010 allow all from any to any via $vpn # allow connection to/from LAN by Transmission $cmd 00101 allow all from me to 192.168.0.1/24 $cmd 00102 allow all from 192.168.0.1/24 to me # deny any Transmission connection outside LAN that does not use VPN $cmd 00105 allow all from any to any 1194 out via epair0b $cmd 00106 deny all from any to any out via epair0b