How do I enable routing to eth0 without having the ability to communicate amongst pptp clients? I know ip_forward = 1 makes routing of pptp clients possible, but i dont want communication under pptp clients.
You need to block traffic between users by packet filter.
You have any suggestion on how to achieve this using for iptables for example? My clients are connection using ppp0,ppp1,pppX and outgoing interface is eth0 May 19, 2011 at 16:48
It would be more simple of your assign IPs to clients from dedicated subnet, so all you need is one rule per interface to deny traffic on given interface (pppX) to given subnet– AlexDMay 19, 2011 at 17:02
all pppX devices get an ip 192.168.50.0/24 and the eth0 is on a wan ip. I also cant seem to get internet traffic over my pptp tunnel. ip_forward is on... May 19, 2011 at 17:05
Seem to have fixed that now using
iptables -t nat -A POSTROUTING -s 192.168.50.0/24 -o eth0 -j MASQUERADE; Now only thing remaining is to block traffic between 192.168.50.0/24 clients... May 19, 2011 at 17:10
All you need is something like
iptables -A INPUT -i ppp0 -d 192.168.50.0/24 -j REJECTsomewhere in /etc/ppp/ip-up.d/– AlexDMay 19, 2011 at 17:23