I'm simply trying to redirect all incoming traffic on port 23 to port 23 on one of my jails.
I have my current IP of my host 192.168.1.64, and the IP of my jail 192.168.1.65. I have SSH running on the host on port 22, and SSH on the jail running on port 23. My goal is to make it possible to connect to the jail's SSH via 192.168.1.64.
Here's my attempt:
rc.conf
pf.conf
How far off am I? I belong in the kernel, this networking stuff feels like a rats-nest (hopefully I learn soon).
Solution: Connect remotely, not locally. pf does not modify local connections, it must enter through the interface.
-Brandon
I have my current IP of my host 192.168.1.64, and the IP of my jail 192.168.1.65. I have SSH running on the host on port 22, and SSH on the jail running on port 23. My goal is to make it possible to connect to the jail's SSH via 192.168.1.64.
Here's my attempt:
rc.conf
Code:
pf_enable="YES"
pf_rules="/etc/pf.conf"
pf_flags=""
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
pflog_flags=""
gateway_enable="YES"
pf.conf
Code:
rdr on wlan0 inet proto { tcp, udp } from any to 192.168.1.64 port 23 \
-> 192.168.1.65 port 23
How far off am I? I belong in the kernel, this networking stuff feels like a rats-nest (hopefully I learn soon).
Solution: Connect remotely, not locally. pf does not modify local connections, it must enter through the interface.
-Brandon