-
Notifications
You must be signed in to change notification settings - Fork 143
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
[BUG] PF syntax issues with rdr #673
Comments
#644 Seems like it could be related, but I haven't changed any system tunables on this system yet, and I don't have IPV6 setup or in use on any interfaces. |
There were changes to bastille.conf that caused a lot of issues for people on the last Bastille update. Is it possible that you updated Bastille, everything was fine but your VPS rebooting after power loss and reloading the new Bastille settings broke things? You could try comparing your usr/local/etc/Bastille/bastille.conf with the current one. |
Thanks for the info/fast update. And I think that you're right, that's probably the case. I've played around with my pf.conf file a bit and manually
works fine. I think it might have to do with the ran vimdiff on both the conf files and lines 14-16, 52 and 55-57 and are missing. I can see why those would be important. I'll try yanking them into the current conf file and post results if it solves it. |
I hit the same issue today! A little bash debugging suggests that the syntax issues (but not he DIOCGETRULES issue) is related to the IP6 path in |
Same issue for me, I diffed my
Still remains for one jail. Any ideas on this one? |
has anyone an update on this? I get the same error EDIT: NO issues; for some reason the ssh wasn't NAT'n through. but other services are accessible :) |
Check that the the value for the config parameter
I am unsure what the acceptable values are, but
I had commented it out while troubleshooting a bug in Bastille's rdr.sh, and restoring it restored IP6 provisioning for the jail. |
I believe some of the problems with RDR are related to IP6, and that two functions in Below are snippets from my locally modified rdr.sh that changes the
|
Same issue here with the |
Same issue here as well on FreeBSD-14.1-p2 :
Perhaps this is the cause of the empty pf jails table, this commands gives empty output: This line seems to trigger the
Perhaps pfctl |
I missed the following line when upgrading old bastille.conf to new
With it, I am not seeing the errors on 14.1 |
IPv6 handling in Bastille is now very broken. Here is an example
Addresses I see the |
Just ran into this also.
|
EDIT: looks like the function still works though. The ports are published and I can get inside the jail. This is with IPv4 only though. |
#768 should take care of this error. It only happens when pfctl is not able to find any rules in the table, meaning they have not yet been created. But once they are created, the error never shows up. The PR I linked to simply ignores the error. |
[MANDATORY] Describe the bug [MANDATORY]
Starting/Stoping a thinjail causes pfctl to output an error
DIOCGETRULES: Invalid argument
. When trying to use RDR with ports it will also give errors about a macro not being defined, along with a syntax error.Sockstat doesn't show the ports being in use before or after trying to start the jails that use RDR.
[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)[optional] Steps to reproduce?
[optional] Expected behavior
Jail up and running using the correct ports.
[optional] Screenshots
Bastille List All output
PF rules
[optional] Additional context
Had a VPS lose power and restart, noticed this issue after that. I'm assuming it's because I had updated Bastille before hand.
The text was updated successfully, but these errors were encountered: