Re: IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Martin
I have IPv6 point to point connection. Going to transmit IPv4 inside IPv6 tunnel. client has IPv6 ::::2 gateway has IPv6 ::::1 Martin ‐‐‐ Original Message ‐‐‐ On Friday, May 8, 2020 8:55 PM, Brian Brombacher wrote: > From your description, you want to pass IPv4

Re: IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Tom Smyth
Martin If I understand your question correctly ... PC1 --IPV6 Gateway1 so you have a public ipv6 address on PC1 and Gateway 1 hostname.gif should specify the real ipv6 address of PC1 and the real IPv6 address of gateway1 in it to establish the tunnel #setup

Re: IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Martin
Last thing I have to understand about gif(4) and IPv6 tunneling. Should I set gif(4) 'inet6 alias' = the same IPv6 of the local end of IPv6 tunnel interface or just set 'inet6 alias' for gif(4) in tunnel's IPv6 subnet? Martin ‐‐‐ Original Message ‐‐‐ On Friday, May 8, 2020 4:41 PM, Tom

Re: IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Brian Brombacher
>From your description, you want to pass IPv4 inside a tunnel that has an outer >protocol of IPv6. Your resulting hostname.gif0 looks like the exact opposite >of your description (IPv6 inside the tunnel with IPv4 outer). Clarify what you need please. Provide your existing hostname.if files for

Re: IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Martin
Thanks for confirmation. Hope I understand gif(4) functionality right from its configuration. Can I set /etc/hostname.gif0 from client's side only like below: /etc/hostname.gif0 tunnel 10.20.30.40 195.203.212.221 inet6 alias 2001:05a8::0001::::8542 128 dest 2001:05a8::0001:00

IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Martin
I have IPv6 unidirectional tunnel between two machines. One of them is gateway, another one is a client. The goal is to route IPv4 packets over IPv6 tunnel from client to gateway and NAT IPv4 packet to egress on gateway machine. May I use gif(4) for it or what is the best approach to traverse IP

Re: IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Tom Smyth
Hi Martin, If I understand your question correctly you need 2 endpoints to the tunnel... for gif(4) or any gre((4) based tunnel you need the interface setup on both the client and the server (gateway) if you have a gateway serving multiple clients... then you need one interface per client that y

Re: IPv4 traffic over IPv6 tunnel approach

2020-05-08 Thread Kristjan Komlosi
gif(4) should work fine, as it's designed to do what you described. The best approach depends on the level of security you want to achieve. IPIP tunnels aren't encrypted... regards, kristjan On 5/8/20 3:32 PM, Martin wrote: > I have IPv6 unidirectional tunnel between two machines. One of them is