From df9cb6180a3050aaf408fd1fd0c40678ea848710 Mon Sep 17 00:00:00 2001 From: Mygod Date: Tue, 27 Aug 2019 23:24:23 +0800 Subject: [PATCH] Friendly reject blocked clients --- mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt index 22fe7ab3..17f7a3a1 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt @@ -272,7 +272,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh transaction.execQuiet("$IPTABLES -N vpnhotspot_fwd") transaction.execQuiet("$IPTABLES -N vpnhotspot_acl") transaction.iptablesInsert("FORWARD -j vpnhotspot_fwd") - transaction.iptablesAdd("vpnhotspot_fwd -i $downstream ! -o $downstream -j DROP") // ensure blocking works + transaction.iptablesAdd("vpnhotspot_fwd -i $downstream ! -o $downstream -j REJECT") // ensure blocking works // the real forwarding filters will be added in Subrouting when clients are connected }