Page MenuHomeFreeBSD
Feed Advanced Search

Feb 12 2020

donner added inline comments to D23577: divert: Add socket options for divert socket's send and receive buffers.
Feb 12 2020, 11:22 AM
donner added a comment to D23577: divert: Add socket options for divert socket's send and receive buffers.

As a side node perfomance is gained from collapsing

ipfw -q add 100 divert natd ip from any to any in via wan0
ipfw -q add 1000 divert natd ip from any to any out via wan0

to

ipfw -q add 100 divert natd ip from any to any via wan0
Feb 12 2020, 8:57 AM
donner added a comment to D23450: libalias: Allow setting alias port ranges.
In D23450#518558, @neel_neelc.org wrote:

Thanks for your feedback.

I'm thinking about switching the NAT port range to something like 2000-2999 instead of 2000 3000 for consistency with the rest of IPFW. Would this be okay?

Feb 12 2020, 8:43 AM

Feb 11 2020

donner updated the summary of D23586: ipfw_nat: Perfomance of accessing multiple nat tables.
Feb 11 2020, 8:40 PM
donner added a comment to D23450: libalias: Allow setting alias port ranges.

I'm still not satisfied with the "upper bound", which is inconsistent between "config port range" and "matching port range" in the ipfw rule set. It does not allow to specify the highest port (but this is a minor issue).

Feb 11 2020, 8:37 PM
donner added a comment to D23091: netgraph/ng_nat: Prevent crash by malformated packets.

@eugen_grosbein.net are your concerns handled?

Feb 11 2020, 8:26 PM
donner added a comment to D23091: netgraph/ng_nat: Prevent crash by malformated packets.

Thank you. Somebody need to land this.

Feb 11 2020, 8:18 PM

Feb 10 2020

donner updated the diff for D23329: Make ICMP redirect processing depend on routing daemon.

Checking for enabled dynamicrouting services.

Feb 10 2020, 11:29 AM
donner added a comment to D23329: Make ICMP redirect processing depend on routing daemon.

Is there any framework for obtaining the PROVIDE of enabled services?

Feb 10 2020, 8:55 AM
donner updated the diff for D23329: Make ICMP redirect processing depend on routing daemon.

Rebase to r357716

Feb 10 2020, 7:25 AM
donner added a comment to D23450: libalias: Allow setting alias port ranges.

Can you please mark all the comments as "Done", which are solved. Only the author of the patch can do this.

Feb 10 2020, 7:20 AM

Feb 9 2020

donner added a comment to D23450: libalias: Allow setting alias port ranges.

I wonder how it is possible to configure the whole range 65000 to 65535 as usable ports,

Feb 9 2020, 7:56 PM
donner added inline comments to D23450: libalias: Allow setting alias port ranges.
Feb 9 2020, 6:43 PM
donner added a comment to D23586: ipfw_nat: Perfomance of accessing multiple nat tables.

We already have "nat tablearg" feature for this task:

Feb 9 2020, 2:25 PM
donner retitled D23586: ipfw_nat: Perfomance of accessing multiple nat tables from ipfw_nat: Perfomance of acceing multiple nat tables to ipfw_nat: Perfomance of accessing multiple nat tables.
Feb 9 2020, 2:04 PM
donner added a comment to D23450: libalias: Allow setting alias port ranges.

You do not have to follow my comments.
I just express my feelings, which may be wrong or misleading.
If your idea is different, please feel free to refuse the advice.

Feb 9 2020, 1:02 PM
donner added a comment to D23586: ipfw_nat: Perfomance of accessing multiple nat tables.

We already have "nat tablearg" feature for this task:

single rule

ipfw add nat tablearg ip from any to 'table(1)'

for each $k and $i

ipfw table 1 add 192.168.$k.$i $k

Have you tried measuring performance of such configuration? It uses RADIX tree instead of linear seach.

Feb 9 2020, 12:47 PM

Feb 8 2020

donner added a comment to D23450: libalias: Allow setting alias port ranges.
In D23450#516086, @lutz_donnerhacke.de wrote:
In D23450#515858, @neel_neelc.org wrote:

Also, may I please have your patch for NAT table lookup? It would work very well for this.

Yep, I'v to adapt it to CURRECT, the structure of accessing the "nat" component in ipfw was changed (which make it much easier to apply a different access scheme)

Feb 8 2020, 9:43 PM
donner added inline comments to D23586: ipfw_nat: Perfomance of accessing multiple nat tables.
Feb 8 2020, 9:42 PM
donner added a reviewer for D23586: ipfw_nat: Perfomance of accessing multiple nat tables: network.
Feb 8 2020, 9:30 PM
donner updated the test plan for D23586: ipfw_nat: Perfomance of accessing multiple nat tables.
Feb 8 2020, 9:29 PM
donner created D23586: ipfw_nat: Perfomance of accessing multiple nat tables.
Feb 8 2020, 9:27 PM
donner added inline comments to D23450: libalias: Allow setting alias port ranges.
Feb 8 2020, 8:36 PM
donner accepted D23448: ipfw: Add missing mention of RFC 6598/Carrier Grade NAT in ipfw_config_nat().
Feb 8 2020, 8:12 PM
donner added inline comments to D23450: libalias: Allow setting alias port ranges.
Feb 8 2020, 8:28 AM

Feb 7 2020

donner added inline comments to D23450: libalias: Allow setting alias port ranges.
Feb 7 2020, 12:26 PM

Feb 5 2020

donner added a comment to D23450: libalias: Allow setting alias port ranges.
In D23450#515858, @neel_neelc.org wrote:

Thanks for clarifying. I'm still new to FreeBSD TCP/IP stack development.

Feb 5 2020, 8:54 AM

Feb 4 2020

donner requested changes to D23450: libalias: Allow setting alias port ranges.
In D23450#515797, @neel_neelc.org wrote:
In D23450#515778, @lutz_donnerhacke.de wrote:

Correct me, if I'm wrong, but how are packets dealiased if more than one instance is defined using this patch?

Packets are aliased and dealiased as they would without this patch, as this patch only impacts the selection of ports if port_alias is selected.

Feb 4 2020, 5:30 PM
donner added a comment to D23450: libalias: Allow setting alias port ranges.

Correct me, if I'm wrong, but how are packets dealiased if more than one instance is defined using this patch?

Feb 4 2020, 4:04 PM
donner added a comment to D23450: libalias: Allow setting alias port ranges.
In D23450#515678, @lutz_donnerhacke.de wrote:

I'd prefer an approach to limit the port range per source IP (e.g. "port_range 300" as an option to reserve 300 ports for this IP) and log this assignment. This allows to keep the NAT setup simple, while reducing the amount of logging for NAT.

Feb 4 2020, 10:48 AM
donner added a comment to D23450: libalias: Allow setting alias port ranges.

To bring this up, you need a bunch of ipfw rules (one per customer) where you know the (internal) IP of the customer beforehand.

Feb 4 2020, 10:41 AM
donner added a comment to D23448: ipfw: Add missing mention of RFC 6598/Carrier Grade NAT in ipfw_config_nat().

I wondered why there is no change in the man page necessary, but it was already mentioned.
I wondered why somebody would mention an option in the man page, but the code only covers the "read and show" part.
So this patch is to enable the functionality as described in the man page, correct?

Feb 4 2020, 9:41 AM

Feb 3 2020

donner accepted D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata().
Feb 3 2020, 8:31 PM
donner added inline comments to D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata().
Feb 3 2020, 3:26 PM
donner requested changes to D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata().

There are no interactions with the other open review.

Feb 3 2020, 7:45 AM
donner added inline comments to D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata().
Feb 3 2020, 7:43 AM
donner added inline comments to D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata().
Feb 3 2020, 7:32 AM
donner added a comment to D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata().

Please let me verify, that this change does not break D21968.

Feb 3 2020, 7:25 AM
donner added a reviewer for D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata(): donner.
Feb 3 2020, 7:24 AM
donner added a comment to D23461: netgraph: Add RFC 6598/Carrier Grade NAT support to ng_nat.

Of course, the change is straight forward, but can we please have some words in the man page explaining how the names of the flags match the correspondent names in libalias.

Feb 3 2020, 7:23 AM ยท network

Jan 29 2020

donner added inline comments to D23329: Make ICMP redirect processing depend on routing daemon.
Jan 29 2020, 7:13 PM

Jan 28 2020

donner added inline comments to D23329: Make ICMP redirect processing depend on routing daemon.
Jan 28 2020, 5:02 PM
donner added inline comments to D23329: Make ICMP redirect processing depend on routing daemon.
Jan 28 2020, 5:00 PM
donner added inline comments to D23329: Make ICMP redirect processing depend on routing daemon.
Jan 28 2020, 6:09 AM

Jan 24 2020

donner added a comment to D23091: netgraph/ng_nat: Prevent crash by malformated packets.

So this provides some basic validation, but it is not clear what assumptions libalias makes on input packets. Do we also need to verify the IP header checksum? For fragments, do we need to duplicate some of the validation implemented by ip_reass()?

Jan 24 2020, 2:59 PM

Jan 23 2020

donner added a reviewer for D23329: Make ICMP redirect processing depend on routing daemon: network.
Jan 23 2020, 11:07 AM
donner updated the test plan for D23329: Make ICMP redirect processing depend on routing daemon.
Jan 23 2020, 11:06 AM
donner created D23329: Make ICMP redirect processing depend on routing daemon.
Jan 23 2020, 11:04 AM

Jan 15 2020

donner resigned from D23153: [netgraph/epoch] fix panic on usage of ipfw ng node.

Sorry, that's my failure. The patch is wrong though. We should run all netgraph in epoch.

Jan 15 2020, 9:35 AM

Jan 14 2020

donner added a comment to D23110: Introduce CTLFLAG_NEEDGIANT.

Sorry, I'm lost. What is the purpose of this flag?

Jan 14 2020, 9:26 PM
donner accepted D23168: [netgraph/ng_eiface] Generate MAC address from the FreeBSD OUI range..

Because setting a MAC is still possible, the older scripts will not fail with this patch.

Jan 14 2020, 9:17 PM
donner accepted D23153: [netgraph/epoch] fix panic on usage of ipfw ng node.

I'd prefer an accept from somebody more involved.

Jan 14 2020, 9:15 PM

Jan 13 2020

donner added a comment to D23153: [netgraph/epoch] fix panic on usage of ipfw ng node.

The structure of the whole function bugs me.
I'd expect a large switch(ip->ip_v) with thee cases: v4, v6 and default.
In each of the cases, I'd expect a

Jan 13 2020, 9:40 PM
donner added a comment to D23091: netgraph/ng_nat: Prevent crash by malformated packets.

If there is no known case leading to a panic, we should not scare users with manual. It's still bad wording IMO. If there is known vector that may lead to panic, another checks should be added to make sure panic does not happen.

Jan 13 2020, 3:38 PM
donner updated the diff for D23091: netgraph/ng_nat: Prevent crash by malformated packets.

Leave the man page untouched.

Jan 13 2020, 3:37 PM
donner added a comment to D23091: netgraph/ng_nat: Prevent crash by malformated packets.
In D23091#507447, @lutz_donnerhacke.de wrote:

Add an explanation to the man page.

I don't think we should make a habit documenting kernel panics in NEGRAPH code. Such bugs must be fixed, not documented.

Jan 13 2020, 11:56 AM
donner added inline comments to D23091: netgraph/ng_nat: Prevent crash by malformated packets.
Jan 13 2020, 11:01 AM
donner updated the diff for D23091: netgraph/ng_nat: Prevent crash by malformated packets.

Add an explanation to the man page.

Jan 13 2020, 10:59 AM

Jan 10 2020

donner added inline comments to D23091: netgraph/ng_nat: Prevent crash by malformated packets.
Jan 10 2020, 10:54 AM
donner updated the diff for D23091: netgraph/ng_nat: Prevent crash by malformated packets.

Fixed spacing style.

Jan 10 2020, 10:53 AM

Jan 9 2020

donner added inline comments to D23097: Revert VNET change and expand VNET structure..
Jan 9 2020, 11:59 AM
donner created D23103: net/parpd: New version of software available.
Jan 9 2020, 11:49 AM
donner updated the diff for D23091: netgraph/ng_nat: Prevent crash by malformated packets.

Checking available space before accessing it.

Jan 9 2020, 8:06 AM

Jan 8 2020

donner added a reviewer for D23091: netgraph/ng_nat: Prevent crash by malformated packets: network.
Jan 8 2020, 5:39 PM
donner created D23091: netgraph/ng_nat: Prevent crash by malformated packets.
Jan 8 2020, 5:38 PM

Jan 4 2020

donner updated the diff for D22076: netgraph/ng_vlan_rotate: IEEE 802.1ad VLAN manipulation netgraph node type (new type).

Run indent(1) on the source files.
Reduced comments from the boilerplate.
Changed hard coded ethertypes by global definitions introduced by D21846.

Jan 4 2020, 9:09 PM
donner added a comment to D21961: netgraph/ng_bridge: Reestablish old ABI.

The diff https://reviews.freebsd.org/D21961?vs=63102&id=66348#toc does only contain two small lines.

Jan 4 2020, 8:20 PM
donner updated the diff for D21961: netgraph/ng_bridge: Reestablish old ABI.

Changed back to a self contained handing of the old ABI calls.
Thank you @bz for the idea to check for errors.

Jan 4 2020, 8:18 PM

Jan 3 2020

donner updated the diff for D21961: netgraph/ng_bridge: Reestablish old ABI.

Allow common calls to the old ABI to fall though to the new one.
Fix generic error handling (go out on error).

Jan 3 2020, 5:31 PM
donner updated the diff for D21961: netgraph/ng_bridge: Reestablish old ABI.

The old ABI is different from the new one.
Fall through to the new ABI was an early (but wrong idea)

Jan 3 2020, 5:15 PM
donner accepted D22289: mount_smbfs: Issue a warning when .nsmbrc section name contains lowercase characters.
Jan 3 2020, 12:08 PM
donner requested changes to D22289: mount_smbfs: Issue a warning when .nsmbrc section name contains lowercase characters.
Jan 3 2020, 11:36 AM
donner added inline comments to D22289: mount_smbfs: Issue a warning when .nsmbrc section name contains lowercase characters.
Jan 3 2020, 11:33 AM
donner added inline comments to D22289: mount_smbfs: Issue a warning when .nsmbrc section name contains lowercase characters.
Jan 3 2020, 11:20 AM

Jan 2 2020

donner accepted D22988: Bring back redirect route expiration..
Jan 2 2020, 9:25 PM
donner added a comment to D22988: Bring back redirect route expiration..

If going this way, I'd be more thinking of having an rc.d script that would verify
the presence of an enabled routing daemon and rely on that to disable redirects.

Jan 2 2020, 9:20 PM
donner added a comment to D22988: Bring back redirect route expiration..

Is it possible to default the "redirect" settings to an "automatic mode" where redirects are disabled if a certain, hardcoded size of the routing table is crossed?

Jan 2 2020, 12:06 PM

Dec 26 2019

donner added inline comments to D22110: netgraph/ng_car: Add color marking code.
Dec 26 2019, 12:02 AM

Dec 11 2019

donner accepted D22737: pf: Make request_maxcount runtime adjustable.
Dec 11 2019, 8:26 AM
donner accepted D22733: pfctl: Warn users when they run into kernel limits.

Thank you.

Dec 11 2019, 8:08 AM

Dec 10 2019

donner added a comment to D22733: pfctl: Warn users when they run into kernel limits.
In D22733#497656, @kp wrote:
In D22733#497518, @lutz_donnerhacke.de wrote:

Reporting an "error too many tables" is useful for adding a new table.
It's wrong for deleting and misleading for obtaining statistics.

Good point. I'll see if I can improve the error message.

Dec 10 2019, 7:06 AM
donner added a comment to D22737: pf: Make request_maxcount runtime adjustable.

What happens, if the number is reduced below the number of currently existing tables?

Dec 10 2019, 7:01 AM

Dec 9 2019

donner added a comment to D22733: pfctl: Warn users when they run into kernel limits.

Reporting an "error too many tables" is useful for adding a new table.
It's wrong for deleting and misleading for obtaining statistics.

Dec 9 2019, 8:40 AM

Dec 4 2019

donner added a comment to D20468: if_vether, ported from OpenBSD.

Speaking of locking, don't we need any in if_vether?

Likely, but I had failed to get anyone else to look at this and promptly lost interest because this isn't an area I work in often.

Dec 4 2019, 8:52 PM
donner added a comment to D20468: if_vether, ported from OpenBSD.

It look like duplicate work compared to ng_eiface and ng_bridge.
What are the benefits of this interface over the ng ones?

Dec 4 2019, 8:33 PM
donner added a comment to D22447: Implement NDP resource limits..
In D22447#495146, @bz wrote:

Thanks a lot for the feedback. let me know what you think about the suggestion to move the basic functionality into llatbl?

Dec 4 2019, 6:39 AM

Dec 2 2019

donner added inline comments to D22447: Implement NDP resource limits..
Dec 2 2019, 8:58 PM

Nov 26 2019

donner added inline comments to D22447: Implement NDP resource limits..
Nov 26 2019, 9:22 PM

Nov 25 2019

donner added inline comments to D22447: Implement NDP resource limits..
Nov 25 2019, 10:36 PM

Nov 20 2019

donner added inline comments to D22447: Implement NDP resource limits..
Nov 20 2019, 10:05 PM
donner added inline comments to D22447: Implement NDP resource limits..
Nov 20 2019, 9:12 PM

Nov 19 2019

donner accepted D22267: Make sure the 'struct tcp_info' is stable.
Nov 19 2019, 9:45 PM
donner accepted D22267: Make sure the 'struct tcp_info' is stable.

Okay

Nov 19 2019, 7:06 AM

Nov 6 2019

donner added a comment to D22243: Schedule link address update when vlan's parent interface is changed.

Okay from me.
Now you need to find some of the senior developers to approve and commit it.

Nov 6 2019, 2:23 PM

Nov 5 2019

donner added a comment to D22243: Schedule link address update when vlan's parent interface is changed.

I just tried to avoid extra work (updating of each llentry), that can be done in case when interface has tens or hundreds of addresses.

Nov 5 2019, 8:37 PM
donner added a comment to D22243: Schedule link address update when vlan's parent interface is changed.

If copying the LL addr is happening every time a parent interface is added (bcopy) , why not schedule the update too unconditionally?
It will only happen on changing the parent interface anyway.

Nov 5 2019, 4:29 PM

Nov 2 2019

donner added inline comments to D22217: Fix iterating over BT LE responses.
Nov 2 2019, 4:05 PM

Oct 25 2019

donner added reviewers for D22140: netgraph/ng_tag: Variable length data can not be set for all length: julian, glebius, mav.
Oct 25 2019, 2:44 PM

Oct 24 2019

donner updated the summary of D22140: netgraph/ng_tag: Variable length data can not be set for all length.
Oct 24 2019, 2:04 PM
donner updated the summary of D22140: netgraph/ng_tag: Variable length data can not be set for all length.
Oct 24 2019, 2:03 PM