Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


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.

Block website/IP in VPN?

winstonwinston Member
edited October 2012 in Help

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

  • netomxnetomx Moderator, Veteran

    ip route add blackhole 127.0.0.1

    Thanked by 1DeletedUser
  • JacobJacob Member
    edited October 2012

    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 said: ip route add blackhole

  • @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

    Thanked by 1winston
  • netomxnetomx Moderator, Veteran

    @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

Sign In or Register to comment.