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

luci-app-firewall: fix the IPv6 forwards/snats view #6331

Merged
merged 1 commit into from Apr 15, 2023

Conversation

dibdot
Copy link
Contributor

@dibdot dibdot commented Apr 5, 2023

  • corrects the view as IPv4 and IPv6 for rules where the family is 'any' and the IP not set (this fixes #9c55500), e.g. a forward rule like that:
config redirect 'adblock_lan53'
	option name 'Adblock DNS (lan, 53)'
	option src 'lan'
	option proto 'tcp udp'
	option src_dport '53'
	option dest_port '53'
	option target 'DNAT'
	option family 'any'

Old behavior
Forward:
forwards_old

SNAT:
snats_old

New behavior:
Forward:
forwards_new

SNAT:
snats_new

Signed-off-by: Dirk Brenken dev@brenken.org

* corrects the view as IPv4 and IPv6 for rules where the family is 'any' and the IP not set (this fixes #9c55500), e.g. a forward rule like that:

config redirect 'adblock_lan53'
	option name 'Adblock DNS (lan, 53)'
	option src 'lan'
	option proto 'tcp udp'
	option src_dport '53'
	option dest_port '53'
	option target 'DNAT'
	option family 'any'

Signed-off-by: Dirk Brenken <dev@brenken.org>
@efahl
Copy link

efahl commented Apr 5, 2023

Changes tested on SNAPSHOT r22493-5a8741aee9. Looks good to me.

@dibdot dibdot merged commit e5a97eb into openwrt:master Apr 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants