i am having issue with ipfw and if it is even starting.,
i used the cronjob and script for ipfw_rules
used /etc/rc.d/ipfw start to start it
comes up with this.
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
00400 deny ip from any to ::1
00500 deny ip from ::1 to any
00600 allow ipv6-icmp from :: to ff02::/16
00700 allow ipv6-icmp from fe80::/10 to fe80::/10
00800 allow ipv6-icmp from fe80::/10 to ff02::/16
00900 allow ipv6-icmp from any to any ip6 icmp6types 1
01000 allow ipv6-icmp from any to any ip6 icmp6types 2,135,136
Line 4: bad command `fwcmd="/sbin/ipfw"'
Firewall rules loaded.
then i try the ping
www.google.com.au with openvpn on or off still pings..
this is what i used for the script and cron.
#!/bin/sh
# Set rules command prefix
fwcmd="/sbin/ipfw"
# Flush out the list before we begin.
${fwcmd} -f flush
${fwcmd} add 01006 allow ip from 192.168.2.0/24 to 192.168.2.0/24 keep-state
${fwcmd} add 02000 allow ip from 192.168.2.0/24 to xxx.xxx.xxx.xxx keep-state
${fwcmd} add 04000 allow ip from 127.0.0.1 to any
${fwcmd} add 65534 deny ip from any to any
echo "" > /sabnzbd/scripts/Firewall_IP.log
this is the rules.
dont know whats happening
do i have to change the device i put tun0 but as you see above its says loO
so not sure..
thanx