Skip to contentSkip to conversation

openvpn server in client-to-client mode - filtering

Openvpn-devel Oleg Motienko 2 participants 2 messages Jun 5, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

Is it possible to filter some ports between clients while server is in client-to-clientmode?

Or maybe there is some others methods for it ?

I need to pass all traffic outside vpn and port range among they.

Thanks in advance!

P.S. Servers running FreeBSD and Linux, clients - Windows and Linux.

Signature · 2 lines
Regards,
Oleg
#1 lore raw

hi

Quoted 2 lines · Oleg Motienko
Quoted 2 lines

Is it possible to filter some ports between clients while server is in client-to-clientmode?

you need to direct the traffic out to the servers tun/tap device in order to filter centralized on the server.

i have the same problem like you. i solved it manually but don't know exactly how to push the rules correctly.

i toggled of client-to-client mode and set up on each client a host route for the servers ip address which is bound to the tap device. then i created on each client routes for each subnet assigned to the several clients with gateway pointing to the servers tap ip address.

the server certainly routes each client-network back into the tap device

this way each traffic coming from a client going to a client must pass the servers tap device twice,. so you can filter using netfilter.

only thing which i did not manage to do is to push this routing configuration to the clients.
maybe we need something like redirect-gateway, but only for a list of subnets?
or did i understood something wrong?

regards,
peter

Signature · 5 lines
:: e n d i a n
:: open source - open minds

:: peter warasin
:: http://www.endian.com   :: [email protected]...