Using
ip route add default via $tun_ip dev $tun_if table 10
ip rule add fwmark 10 table 10
iptables -t mangle -A PREROUTING -i br0 -s 192.168.0.51 -j MARK --set-mark 10
I get 30 to 40 mbps throughput over the vpn when tagging particular clients for vpn use.
I have been trying to dedicate an SSID guest network to use the vpn in addition to this and have got it working but throughput is a lot slower and I was wondering if anyone knew why this might be?
These are the commands used:
ifconfig wl0.1 192.168.2.1
iptables -I INPUT -i wl0.1 -j ACCEPT
iptables -I FORWARD -i wl0.1 -j ACCEPT
iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -o tun11 -j MASQUERADE
ebtables -t broute -I BROUTING -i wl0.1 -p ipv4 -j DROP
ebtables -t broute -I BROUTING -i wl0.1 -p arp -j DROP
ip rule add dev wl0.1 table 10
plus approriate dnsmasq config
many thanks
ip route add default via $tun_ip dev $tun_if table 10
ip rule add fwmark 10 table 10
iptables -t mangle -A PREROUTING -i br0 -s 192.168.0.51 -j MARK --set-mark 10
I get 30 to 40 mbps throughput over the vpn when tagging particular clients for vpn use.
I have been trying to dedicate an SSID guest network to use the vpn in addition to this and have got it working but throughput is a lot slower and I was wondering if anyone knew why this might be?
These are the commands used:
ifconfig wl0.1 192.168.2.1
iptables -I INPUT -i wl0.1 -j ACCEPT
iptables -I FORWARD -i wl0.1 -j ACCEPT
iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -o tun11 -j MASQUERADE
ebtables -t broute -I BROUTING -i wl0.1 -p ipv4 -j DROP
ebtables -t broute -I BROUTING -i wl0.1 -p arp -j DROP
ip rule add dev wl0.1 table 10
plus approriate dnsmasq config
many thanks