IPFW setup questions.

Status
Not open for further replies.

redzero36

Cadet
Joined
Mar 24, 2017
Messages
5
Okay so I'm trying to setup my ipfw rules in my jail but I'm not entirely sure if I'm doing it right. So my goal is to accept all traffic in and out from my vpn so the first rule is set up correct right? My second and third rule's goal is to prevent my jail to leak my IP if my vpn ever goes down but allow my to communicate with my jail over lan. Also I'm not entirely sure what "$cmd xxxxx" means. I take it as the cmd just makes it so the script runs the rules? and the 5 numbers are just an id number for the rules? I just based this on examples I've seen so I hope I understood how to create rules. $vpn points to openvpn's network card listed from ifconfig. $lan points to my network card. Or should I just paste my entire code?

$cmd 00010 allow all from any to any via $vpn
$cmd 00300 allow all from me to 192.168.0.0/24
$cmd 00301 deny all from me to any out via $lan
 
Status
Not open for further replies.
Top