Hi pals,
I am trying to modify a
I copied this configuration to let my Bastille Capsule be expose over the outside, unfortunately, since my cheap VPS is very small, Bastille has become a burden and I would like to move
This was my original
And this what I invented:
But of course isn't working. ?
I knew the error is in this line
Any help, recommendation and suggestion is very appreciated! ?
Thanks in advance! ?
I am trying to modify a
pf.conf
that I copied from someone else but my changes don't work.I copied this configuration to let my Bastille Capsule be expose over the outside, unfortunately, since my cheap VPS is very small, Bastille has become a burden and I would like to move
GMID
, my Gemini server, directly on the host. I tested GMID
and it is working fine, what I believe is creating issue is bad PF
setup.This was my original
pf.conf
:
Code:
ext_if="vtnet0"
# ! IMPORTANT: this needs to be set before you can start using it!
ext_addr=216.155.156.157
# gmid related
gmid_addr=10.10.2.20
set block-policy return
scrub in on $ext_if all fragment reassemble
set skip on lo
table <jails> persist
nat on $ext_if from <jails> to any -> $ext_addr
# container routes
rdr pass inet proto tcp from any to port 1965 -> $gmid_addr port 1965
# Enable dynamic rdr (see below)
rdr-anchor "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 (max-src-conn 10, max-src-conn-rate 20/3600, overload <bruteforce> flush global)
And this what I invented:
Code:
vtnet0="vtnet0"
set block-policy return
scrub in on $vtnet0 all fragment reassemble
set skip on lo
pass inet proto tcp from any to port 1965
block in all
pass out quick modulate state
antispoof for $vtnet0 inet
pass in inet proto tcp from any to any port ssh flags S/SA keep state (max-src-conn 10, max-src-conn-rate 20/3600, overload <bruteforce> flush global)
But of course isn't working. ?
I knew the error is in this line
pass inet proto tcp from any to port 1965
but I can't figure out how to resolve it!Any help, recommendation and suggestion is very appreciated! ?
Thanks in advance! ?