-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using separate interfaces with rdr #664
Comments
Bastille rdr does not work on secondary interfaces. What I've been doing for a few years is what you are suggesting here.
Assuming this is a cloud VM or something, I would suggest leaving the default ext_if alone and manually setting all the RDRs in pf.conf for your vpn interface, which is what I do. If this server is on a lan, you can use bastille rdr as normal for lan access but manually do RDRs for your VPN. Having an interface option to rdr would be a nice feature though. |
Can you try out this block of code? Just back up your old rdr.sh file and replace it with this one. This should allow you to specify an interface as the first arguement.
|
Seems to enter all the correct stuff. But test and see if it does the redirects properly. https://lists.freebsd.org/pipermail/freebsd-questions/2020-March/288131.html |
My "rdr.conf" file now looks like this.
And no errors when starting and stopping a jail. |
And my rules... |
I'm trying out Bastille, and I have a setup where I'm using two different interfaces: one regular ethernet (
em0
) for regular outgoing traffic, and one "vpn-interface" (let's call itvpn0
) for things like monitoring to my BSD host.As I understand it, setting
ext_if
inpf.conf
is not only for convenience in rules using that variable, but is also assumed by Bastille to be the interface that traffic will be hitting when doing redirects (rdr). The problem for me is that I don't want to create a redirect for myext_if
, but forvpn0
. So instead of:I would actually want it to say something like this (
vpn0
):I can't find any way to set an interface when using
bastille rdr
, so I'm assuming this functionality doesn't exist and always assumesext_if
-- but is it possible in any sane way? Should I not usebastille rdr
at all, and instead and just set something up inpf.conf
, and if so any suggestions on what?I don't think simply changing
ext_if
is a good idea, because thisvpn0
interface does not have regular Internet access.The text was updated successfully, but these errors were encountered: