Re: Outgoing packets being sent via wrong interface

2015-11-25 Thread Ryan Stone
An easier way to block ICMP redirects would be to set the sysctl: sysctl net.inet.icmp.drop_redirect=1 ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr.

Re: Outgoing packets being sent via wrong interface

2015-11-25 Thread Kevin Oberman
On Wed, Nov 25, 2015 at 5:16 AM, Daniel Bilik wrote: > On Wed, 25 Nov 2015 12:20:33 + > Gary Palmer wrote: > > > When the problem happens, what does the output of > > route -n get > > show? > > I'll check this next time it happens. Thanks for the tip. Right now it > seems correct: > >ro

Can I send the Ethernet frames with particular payload via Netmap?

2015-11-25 Thread Hao Wu
Hi all, I just start using Netmap. I want to know can I build the Ethernet frames and send out via Netmap? I used to build the Ethernet frames via Libnet, but it is too slow. So I turn to Netmap now. But I have no idea on how to write the code using Netmap or what functions should I call? A

Re: Outgoing packets being sent via wrong interface

2015-11-25 Thread Daniel Bilik
On Wed, 25 Nov 2015 12:20:33 + Gary Palmer wrote: > When the problem happens, what does the output of > route -n get > show? I'll check this next time it happens. Thanks for the tip. Right now it seems correct: route to: 192.168.2.33 destination: 192.168.2.0 mask: 255.255.255.0

Re: Outgoing packets being sent via wrong interface

2015-11-25 Thread Kristof Provost
On 2015-11-25 09:21:45 (+0100), Daniel Bilik wrote: > Touching nothing else (pf etc.), not rebooting, just "refreshing" the > default route entry, and the problem disappeared. > I was still inclined to suspect pf based on your previous findings, because pf subscribes to IP address (and group) inf

Re: Outgoing packets being sent via wrong interface

2015-11-25 Thread Gary Palmer
On Wed, Nov 25, 2015 at 09:21:45AM +0100, Daniel Bilik wrote: > On Sun, 22 Nov 2015 13:02:40 +0100 > Daniel Bilik wrote: > > > Well, even though pf may play some role in the problem, I tend to suspect > > the routing table as the main trigger. There are several facts to support > > this... > > I

Re: Outgoing packets being sent via wrong interface

2015-11-25 Thread Daniel Bilik
On Sun, 22 Nov 2015 13:02:40 +0100 Daniel Bilik wrote: > Well, even though pf may play some role in the problem, I tend to suspect > the routing table as the main trigger. There are several facts to support > this... It happened again, yesterday, and I can now definitely confirm that it's relate