Socket Sleep and Wakeup clarification

2019-07-31 Thread Dheeraj Kandula
Hi All, I am reading through the socket code in uipc_socket.c file of FreeBSD 12. The code invokes wakeup with the channel as so->so_timeo in the following functions: soisconnected soisdisconnected soisdisconnecting and soshutdown The callers of soconnect invoke sleep so that the thread tha

ipfw questions: how to forward incoming TCP connections from the same host?

2019-07-31 Thread Yuri
I need to forward incoming TCP connections made to my host 192.168.5.3 on the port 3100 to the IP address 10.0.0.101 port 3000 connected through another interface. These rules work when connection is made from a remote host: ipfw -q nat 19001 config redirect_port tcp 10.0.0.101:3000 192.168.5

Re: Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Andrey V. Elsukov
On 31.07.2019 15:50, Viktor Dukhovni wrote: > After further manpage reading, it seems to work with: > > ifconfig_gif0_ipv6="inet6 ::2 ::1 prefixlen > 128 no_prefer_iface" > ifconfig_igb1_ipv6="inet6 ::1 prefixlen 64 prefer_source" > ip6addrctl_policy="AUTO" Yes, in general this shoul

Re: Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Viktor Dukhovni
On Wed, Jul 31, 2019 at 02:46:14PM +0200, Patrick M. Hausen wrote: > > Is it possible to configure my system to use the internal /64 address > > as the default source address of outgoing IPv6 packets? > > That is probably pretty easy depending on your preferred mail server. > Make your mail serve

Re: Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Marek Zarychta
W dniu 31.07.2019 o 14:07, Viktor Dukhovni pisze: > > My FreeBSD machine is also my router, and for lack IPv6 support by > Verizon, now uses a "gif" tunnel via Hurricane Electric. > > HE provides me with two prefixes: > > 1. Point to point tunnel /128: > > cloned_interfaces="gif0" >

Re: Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Artem Viklenko via freebsd-net
Hi! You can set option "deprecated" at your gif0 interface. gif0: flags=8051 metric 0 mtu 1480 inet6 :YYY:YYY:YYY::2 --> :YYY:YYY::1 prefixlen 128 deprecated Works for me. On 31.07.19 15:07, Viktor Dukhovni wrote: My FreeBSD machine is also my router, and for lack IPv6 su

Re: Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Viktor Dukhovni
On Wed, Jul 31, 2019 at 08:07:26AM -0400, Viktor Dukhovni wrote: > HE provides me with two prefixes: > > 1. Point to point tunnel /128: > > cloned_interfaces="gif0" > create_args_gif0="tunnel " > ifconfig_gif0_ipv6="inet6 ::2 ::1 > prefixlen 128" > ipv6_defaultrouter=

Re: Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Patrick M. Hausen
Hi! > Am 31.07.2019 um 14:07 schrieb Viktor Dukhovni : > Since a bunch of my traffic is SMTP, I need reverse resolution for > outgoing IPv6, which means that I need the outgoing sources address > to be ::1, not ::2, even though the > routing table lists "gif0" as the interface with the default ro

Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Viktor Dukhovni
My FreeBSD machine is also my router, and for lack IPv6 support by Verizon, now uses a "gif" tunnel via Hurricane Electric. HE provides me with two prefixes: 1. Point to point tunnel /128: cloned_interfaces="gif0" create_args_gif0="tunnel " ifconfig_gif0_ipv6="inet6

Preferring internal IPv6 source address over gif tunnel IP?

2019-07-31 Thread Viktor Dukhovni
My FreeBSD machine is also my router, and for lack IPv6 support by Verizon, now uses a "gif" tunnel via Hurricane Electric. HE provides me with two prefixes: 1. Point to point tunnel /128: cloned_interfaces="gif0" create_args_gif0="tunnel " ifconfig_gif0_ipv6="inet6