Skywalker1726
Occasional Visitor
hi everyone , i recently started using padavan firmware , and ran into some problems and after a lot of googling , hoped that u guys would be able to help.
what i wanted to do is to make 2 of the devices connected to the router , use the connected PPTP connection and for the other devices to ignore it .
so here are the settings that I'm currently using :
1- PPTP connection ( PPP5 )
2- Restrict Access from VPN Server Site: YES BUT FOLLOW FIREWALL AND PORTFWD Rules
3-DNS From VPN Server : add to the list
4-route everything through the connection : NO
5- FUNC IPUP Script :
ip route flush table 200
ip route flush cache
ip rule add from 192.168.1.10 lookup 200 ( device n1 )
ip rule add from 192.168.1.11 lookup 200 ( device n2 )
VPN_GW=`ifconfig ppp5 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'`
ip route add table 200 default via $VPN_GW dev ppp5
return 0
6-script after Firewall rules restarted
iptables -t nat -A POSTROUTING -o ppp5 -j MASQUERADE
also tried with :
iptables -I FORWARD -i br0 -o ppp5 -j ACCEPT
iptables -I FORWARD -i ppp5 -o br0 -j ACCEPT
iptables -I INPUT -i ppp5 -j REJECT
sometimes ,in best case scenario websites like Youtube do not fully load , i mean it does open the website , but the movies always fail to load .
I have tried tracert command which shows that I'm not on my default gateway and also that my public ip address has changed but the pages still fail to load .
is it a dns problem ?
and also if i set the ""Route All Traffic through the VPN interface?"" setting to YES , then every webpages loads just fine , but that's not what i want to do , i only want to restrict the usage of the PPTP connection to 2 specific device
any help would be appreciated
Thanks
what i wanted to do is to make 2 of the devices connected to the router , use the connected PPTP connection and for the other devices to ignore it .
so here are the settings that I'm currently using :
1- PPTP connection ( PPP5 )
2- Restrict Access from VPN Server Site: YES BUT FOLLOW FIREWALL AND PORTFWD Rules
3-DNS From VPN Server : add to the list
4-route everything through the connection : NO
5- FUNC IPUP Script :
ip route flush table 200
ip route flush cache
ip rule add from 192.168.1.10 lookup 200 ( device n1 )
ip rule add from 192.168.1.11 lookup 200 ( device n2 )
VPN_GW=`ifconfig ppp5 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'`
ip route add table 200 default via $VPN_GW dev ppp5
return 0
6-script after Firewall rules restarted
iptables -t nat -A POSTROUTING -o ppp5 -j MASQUERADE
also tried with :
iptables -I FORWARD -i br0 -o ppp5 -j ACCEPT
iptables -I FORWARD -i ppp5 -o br0 -j ACCEPT
iptables -I INPUT -i ppp5 -j REJECT
sometimes ,in best case scenario websites like Youtube do not fully load , i mean it does open the website , but the movies always fail to load .
I have tried tracert command which shows that I'm not on my default gateway and also that my public ip address has changed but the pages still fail to load .
is it a dns problem ?
and also if i set the ""Route All Traffic through the VPN interface?"" setting to YES , then every webpages loads just fine , but that's not what i want to do , i only want to restrict the usage of the PPTP connection to 2 specific device
any help would be appreciated
Thanks