Skip to content
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

Problem updating firewall rules when changing NAT IP in cbsd initenv-tui #60

Closed
rodyaj opened this issue Jan 19, 2016 · 4 comments
Assignees

Comments

@rodyaj
Copy link

@rodyaj rodyaj commented Jan 19, 2016

Hi. Thanks for making cbsd. It is almost perfect for me, but for one possibe bug. When using cbsd initenv-tui to change the 'natip' property, the /usr/jails/etc/ipfw.conf does not get updated with the new 'natip'. The workaround I've used is to change 'nat_enable' property to another firewall e.g., pf, press 'COMMIT'. then rerun cbsd initenv-tui, but this time switch 'nat_enable' property back to 'ipfw'. Pressing 'COMMIT' after this will update and source the '/usr/jails/etc/ipfw.conf' file properly.

@olevole olevole self-assigned this Jan 20, 2016
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jan 20, 2016

Hi! I will look at this problem this weekend, thanks!

@mzs114

This comment has been minimized.

Copy link

@mzs114 mzs114 commented Jan 21, 2016

Writing IPFW nat rules and stateful filtering rules is hard.. at last I moved to pf.
Hopefully FreeBSD developers update pf.

@rodyaj

This comment has been minimized.

Copy link
Author

@rodyaj rodyaj commented Jan 21, 2016

Yes I spent literally days getting my head around it. And I still don't know if I'm doing it right. There seems to be no consensus on the correct way.

@rodyaj rodyaj closed this Jan 21, 2016
olevole added a commit that referenced this issue Jan 21, 2016
…NAT config when nat switch via initenv-tui ( Issue #60, Thanks to rodyaj )
@olevole olevole reopened this Jan 21, 2016
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jan 21, 2016

Fixed within 79c51fe

@olevole olevole closed this Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.