Client-to-client without kernel routing?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
koala
OpenVpn Newbie
Posts: 1
Joined: Sun Dec 11, 2022 2:50 pm

Client-to-client without kernel routing?

Post by koala » Sun Dec 11, 2022 2:55 pm

Hi everyone, I'm new to the forum and looking for an answer to my question. I already posted my question here on serverfault.com:
https://serverfault.com/questions/11177 ... 58#1117758
but I'm not sure if I'll find anything there. I'll try here. I have established a TUN, client-to-client connection, and am trying to ping the LAN IP address behind the OpenVPN server from the client. And it works! But why?? I have set iptables FORWARD as DROP and disabled ip.v4.forwarding.
Just like in the answer to my question on serverfault.com, and also on other websites, it is of course in the client-to-client setting itself that the packets are not exposed for the kernell so the above rules do not have any effext. But that doesn't apply if I want to connect another physical interface on the server, or does it? How is the OpenVPN process supposed to connect an interface without doing it through the kernel??? :?:

User avatar
ordex
OpenVPN Inc.
Posts: 444
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: Client-to-client without kernel routing?

Post by ordex » Mon Dec 12, 2022 9:21 pm

client-to-client only affects traffic going from a VPN client to another VPN client (so when both source and destination client are behind the tun0 interface).
Any traffic that has to be routed to another interface (i.e. the LAN interface) is not affected by client-to-client.

It seems that the accepted answer on stackoverflow gave you already all details, no?

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Client-to-client without kernel routing?

Post by Pippin » Tue Dec 13, 2022 8:53 pm

I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Post Reply