I am using PF and cannot get packets forwarded to a particular jail.
I want data that comes into my base machine on port 4243 to be forwarded to my jail
that has a service that is listening on port 4243. I have verified with telnet that the jail
can receive data on that port.
Here is my pf.conf
Any help would be greatly appreciated.
I want data that comes into my base machine on port 4243 to be forwarded to my jail
that has a service that is listening on port 4243. I have verified with telnet that the jail
can receive data on that port.
Here is my pf.conf
Code:
ext_if="vtnet0"
#Public IP
IP_PUB="1.1.1.1"
set block-policy return
scrub in on $ext_if all fragment reassemble
set skip on log
table <jails> persist
nat on $ext_if from <jails> to any -> ($ext_if:0)
rdr on $ext_if proto tcp from any to $IP_PUB port 4243 -> 10.10.0.2 port 4243
rdr-anchro "rdr/*"
block in all
pass out quick modulate state
antispoof for $ext_if inet
pass in inet proto tcp from any to any port ssh flags S/SA keep state
Any help would be greatly appreciated.