Page 1 of 1

Cant Connect to VPN

Posted: Tue Jun 12, 2018 10:15 am
by Defsoul
Hi,

I setup a pptp vpn connect and I was able to connect without a problem

I was now trying to block torrents using the following https://www.mansooryousaf.com/blogs/blo ... rsion-6-41.

I now can't connect to the vpn, is there a way I can allow the vpn connection and still block torrents?

Thanks

Re: Cant Connect to VPN

Posted: Tue Jun 12, 2018 12:09 pm
by kerberos2023
use mangle to mark packets which go through layer 7
and then exclude your vpn

Re: Cant Connect to VPN

Posted: Tue Jun 12, 2018 1:57 pm
by CZFan
You can try and add dst port 1723 to the below:
add action=drop chain=forward dst-port=\
    !0-1024,8291,5900,5800,3389,14147,5222,59905 protocol=tcp \
    src-address-list=Torrent-Conn
add action=drop chain=forward dst-port=\
    !0-1024,8291,5900,5800,3389,14147,5222,59905 protocol=udp \
    src-address-list=Torrent-Conn