What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Voxel net-wall

HELLO_wORLD

Very Senior Member
Hi all,

I try to understand the logic of net-wall (the DNI binary version renamed net-wall-bin in @Voxel ’s firmware.

We know its function is to start, restart or stop internal firewall, that it is opaque (not open source).
It also build the default rules (with the rule argument).
With -6 argument, it starts, stop, or restarts the IPv6 firewall.

In effect, it does wipe out iptables (or ip6tables) chains and rebuild them according to router settings. It might do other things, but since it is opaque...

I am not talking here about the net-wall wrapper script that @Voxel provides in his firmware. The wrapper set some extra rules and calls custom firewall-start.sh or firewall6-start.sh if they exist.

I noticed this:
Calling net-wall restart does reset iptables (IPv4) with all expected rules,
However it also does reset ip6tables (IPv6) with some rules (dropping some tcp ports from WAN) but not all (IPv6-CONE is missing for example, or localhost icmp dropping rules).

Calling net-wall -6 restart does reset ip6tables (IPv6) with this time all expected rules (IPv6-CONE is here as well as icmp rules).
It leaves iptables alone (not being reset), meaning anything IPv4 is untouched.

I believe that net-wall restart (or start) should not reset ip6tables at all and only work on IPv4, the same way net-wall -6 restart does only work on IPv6.
In the past, for a while, I had the expected behavior (net-wall restart would not touch ip6tables), but I don’t know what changed since; it is not firmware related.

Anyway, it seems to be a bug in DNI net-wall (net-wall-bin), and unfortunately we cannot access it (code not available to public).

With @Voxel we decided to not change anything to the wrapper for now.
In my case, I use a quick fix by adding a call to net-wall -6 restart in firewall-start.sh to make sure ip6tables is properly rebuilt and not missing some internal rules when net-wall restart (without -6) is called (since it messes up ip6tables).

Do you experience the same problem? If it is general, this could be fixed by simply calling net-wall -6 restart in the wrapper when net-wall restart is called. This is ugly, but since we cannot fix the binary, that is all I can think of.
There might be a nvram setting or other conf data that could make the binary to behave as it should (since it did it for me at some point), but without sources, it is difficult to find...

For info, here is a previous discussion related to this: https://www.snbforums.com/threads/custom-firmware-build-for-r7800-v-1-0-2-72sf.59894/page-5
 
Anyway, it seems to be a bug in DNI net-wall (net-wall-bin), and unfortunately we cannot access it (code not available to public).

Long story. I am using net-wall-bin taken from the stock 1.0.2.58 as far as I remember. So it is September, 2018...

NG/DNI started to push this strange for me Funjsq service. Adding it to net-wal binary somehow. From my log:

1.0.2.63SF:
. . .
15. NG version of OpenVPN client is removed (conflicting with my version of OpenVPN client).
16. Funjsq service is removed (guys from China really sorry, please use the stock version
if you need exactly this version of OpenVPN client, my knowledge of Chinese is
close to zero to understand this service description/feature from this:
https://www.funjsq.com/).
17. Toolchain: gdb is upgraded to 8.2.1.
. . .


As far as I know changes in net-wall by NG/DNI (Funjsq related) caused a lot of problems for the users of stock. And my keeping net-wall-bin from .58 allowed to avoid this. There were several feedbacks., like this one:

https://www.snbforums.com/threads/custom-firmware-build-for-r7800-v-1-0-2-63sf.54782/post-462836

and there were another feedbacks.

So I still keep this version of net-wall-bin. Also I remember info from @microchip that net-wall from latest stock is crashed for IPv6.

Just information. Maybe and most probably bug in this version of net-wall. But newer version could be worst. And no source codes.

Voxel.
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top