New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Block website/IP in VPN?
Hi, sorry for the topic spam, I'm not sure where to really put this besides a new thread.
Anyway, I was wondering if it was possible to ban an IP address (and website) from a VPN. I mean at the VPN server itself, so the client never receives the packets. Thanks.
Comments
ip route add blackhole 127.0.0.1
This can only add Local Routes, ie: devices sharing the same connection, or on the same network.
Edit: I don't typically use the blackhole command but it seems it can.
IPTables would have to handle this, I would advise using IPTables.
@Jack @netomx thanks, I'll try that once I figure out why some random sites won't resolve (and they ping as General failure)
@Jacob I tried doing iptables -A INPUT -s iphere -j DROP and it didn't do anything, also tried -A OUTPUT
-A FORWARD not -A INPUT
@winston my previous was a joke, this can work:
iptables -A INPUT -s 127.0.0.1 -j DROP
where 127.0.0.1 is the IP you need to block