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

FS#4234 - ucode not able to parse port of /etc/config/firewall on ath79 #9216

Closed
openwrt-bot opened this issue Jan 22, 2022 · 3 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Jan 22, 2022

patrickkent:

On mips_24kc/ath79 devices, ucode not able to show correct port numbers.

ACTION=start ucode -S -i /usr/share/firewall4/main.uc | grep port
meta nfproto ipv4 udp dport 0 counter accept comment "!fw4: Allow-DHCP-Renew"
ip6 saddr fc00::/0 ip6 daddr fc00::/0 udp dport 0 counter accept comment "!fw4: Allow-DHCPv6"
udp dport 0 counter jump accept_to_lan comment "!fw4: Allow-ISAKMP"

But on mipsel_24kc/mt76x8 devices, it will give the right port numbers.

ACTION=start ucode -S -i /usr/share/firewall4/main.uc | grep port
meta nfproto ipv4 udp dport 68 counter accept comment "!fw4: Allow-DHCP-Renew"
ip6 saddr fc00::/6 ip6 daddr fc00::/6 udp dport 546 counter accept comment "!fw4: Allow-DHCPv6"
udp dport 500 counter jump accept_to_lan comment "!fw4: Allow-ISAKMP"

Thanks.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jan 22, 2022

patrickkent:

And I got this when restart firewall.
/etc/init.d/firewall start
/proc/self/fd/0:99:13-15: Error: Range has zero or negative size.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jan 22, 2022

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jan 23, 2022

patrickkent:

Thanks a lot. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant