Hello there.
I've a tiny FreeBSD VPS with two jails running within it. I'm reaching out the jails remotely via SSH (First jail: My.public.IP.addr:4215 - 2nd one: my.public.IP.addr:4214) by having the config below.
lo1 = My Jails' virtual local interface I created via rc.conf. I don't know if "set skip on lo1" correct for such case? Should the scrub line come before all as below?
Is the below configuration seems correctly implemented and fine? Any suggestions on further network stability or security-focus would be much appreciated and respected.
Some kind PF experts around here? Thank you in advance.
I've a tiny FreeBSD VPS with two jails running within it. I'm reaching out the jails remotely via SSH (First jail: My.public.IP.addr:4215 - 2nd one: my.public.IP.addr:4214) by having the config below.
lo1 = My Jails' virtual local interface I created via rc.conf. I don't know if "set skip on lo1" correct for such case? Should the scrub line come before all as below?
Is the below configuration seems correctly implemented and fine? Any suggestions on further network stability or security-focus would be much appreciated and respected.
Some kind PF experts around here? Thank you in advance.
Code:
ext_if = "em0"
int_if = "lo1"
scrub in all fragment reassemble
set skip on lo0
set skip on lo1
#Open my Jails to the Internet
nat on $ext_if from ($int_if:network) to any -> ($ext_if:0)
#Direct SSH access to Jail 1
rdr pass on $ext_if inet proto tcp from any to ($ext_if:0) port 4215 -> 10.0.0.2 port 22
#Direct SSH access to Jail 2
rdr pass on $ext_if inet proto tcp from any to ($ext_if:0) port 4214 -> 10.0.0.3 port 22
pass out all
Last edited by a moderator: