hello
@Xentrk
since early today, im having some issues with my vpn client 1 and the routing script. I believe this is occurring after the latest update 2.3.2 since i updated a couple days ago but only today rebooted the router.
my vpnclient1 is connected and working. router has 10.0.2.2 and vpn server is 10.0.2.1. vpn server is pingable from router and from devices connected to router.
i have the following script which i use in order to start the selective routes . i call it manually
Code:
#!/bin/sh
x3mRouting ALL 1 aws1 dnsmasq_file=/jffs/scripts/x3mRouting/aws_domains_01
x3mRouting ALL 1 aws2 dnsmasq_file=/jffs/scripts/x3mRouting/aws_domains_02
x3mRouting ALL 1 uic1 asnum=AS6200
x3mRouting ALL 1 uic2 asnum=AS698
#ipset add aws1 x.x.x.x
logger -st "($(basename "$0"))" $$ Applying aws routes
echo "Applying aws routes" >&2
aws_domains_XX are just plain files
Code:
pandora.com
ifconfig.io
ipinfo.io
deserve.com
imgur.com
wepanow.com
before running the script, i ping from any device on my network to the vpn server at 10.0.2.1 and i get responses
once i run the file above, 10.0.2.1 stops responding
i have to delete all the routes (i have another script for that) and then 10.0.2.1 starts responding again.
Code:
#!/bin/sh
x3mRouting ipset_name=aws1 del
x3mRouting ipset_name=aws2 del
x3mRouting ipset_name=uic1 del
x3mRouting ipset_name=uic2 del
logger -st "($(basename "$0"))" $$ Deleting aws routes
echo "Deleting aws routes" >&2
in addition to this issue, im just starting to see that, with no routes enabled, i cant ping the vpn server 10.0.2.1 from my devices (they are all in network 10.0.0.0). this happens once in a while.
10.0.2.1 is pingable from router (10.0.0.1)
so i ended up going back to zero. uninstalled your script and my vpnclient1 setup
i have again the vpn working and just reinstalled your script. i isolated only one line of my script and after running it, pings to the server stop. here are the results:
Code:
andresmorago@RT-AC3100-0548:/tmp/home/root# ping 10.0.2.1
PING 10.0.2.1 (10.0.2.1): 56 data bytes
64 bytes from 10.0.2.1: seq=0 ttl=64 time=96.664 ms
64 bytes from 10.0.2.1: seq=1 ttl=64 time=97.047 ms
64 bytes from 10.0.2.1: seq=2 ttl=64 time=98.983 ms
64 bytes from 10.0.2.1: seq=3 ttl=64 time=101.418 ms
--- 10.0.2.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 96.664/98.528/101.418 ms
andresmorago@RT-AC3100-0548:/tmp/home/root# x3mRouting ALL 1 aws1 dnsmasq_file=/jffs/scripts/x3mRouting/aws_domains_01
(x3mRouting): 29475 Starting Script Execution ALL 1 aws1 dnsmasq_file=/jffs/scripts/x3mRouting/aws_domains_01
Done.
(x3mRouting): 29475 IPSET created: aws1 hash:net family inet hashsize 1024 maxelem 65536
(x3mRouting): 29475 CRON schedule created: #aws1# '0 2 * * * ipset save aws1'
(x3mRouting): 29475 Selective Routing Rule via VPN Client 1 created for aws1 fwmark 0x1000/0x1000
(x3mRouting): 29475 iptables -t mangle -D PREROUTING -i br0 -m set --match-set aws1 dst -j MARK --set-mark 0x1000/0x1000 2>/dev/null added to /jffs/scripts/x3mRouting/vpnclient1-route-up
(x3mRouting): 29475 iptables -t mangle -A PREROUTING -i br0 -m set --match-set aws1 dst -j MARK --set-mark 0x1000/0x1000 added to /jffs/scripts/x3mRouting/vpnclient1-route-up
(x3mRouting): 29475 iptables -t mangle -D PREROUTING -i br0 -m set --match-set aws1 dst -j MARK --set-mark 0x1000/0x1000 2>/dev/null added to /jffs/scripts/x3mRouting/vpnclient1-route-pre-down
(x3mRouting): 29475 sh /jffs/scripts/x3mRouting/x3mRouting.sh ALL 1 aws1 dnsmasq_file=/jffs/scripts/x3mRouting/aws_domains_01 added to /jffs/scripts/nat-start
(x3mRouting): 29475 Completed Script Execution
andresmorago@RT-AC3100-0548:/tmp/home/root# ping 10.0.2.1
PING 10.0.2.1 (10.0.2.1): 56 data bytes
--- 10.0.2.1 ping statistics ---
16 packets transmitted, 0 packets received, 100% packet loss
andresmorago@RT-AC3100-0548:/tmp/home/root# x3mRouting ALL 1 aws1 del
(x3mRouting): 30847 Starting Script Execution ALL 1 aws1 del
Done.
/jffs/scripts/x3mRouting/vpnclient1-route-up has 1 shebang entry and 0 empty lines.
Would you like to remove /jffs/scripts/x3mRouting/vpnclient1-route-up?
[1] --> Yes
[2] --> No
[1-2]: 1
file deleted
/jffs/scripts/x3mRouting/vpnclient1-route-pre-down has 1 shebang entry and 0 empty lines.
Would you like to remove /jffs/scripts/x3mRouting/vpnclient1-route-pre-down?
[1] --> Yes
[2] --> No
[1-2]: 1
file deleted
0 2 * * * ipset save aws1 > /opt/tmp/aws1 #aws1#
(x3mRouting): 30847 IPSET aws1 deleted!
(x3mRouting): 30847 Completed Script Execution
andresmorago@RT-AC3100-0548:/tmp/home/root# ping 10.0.2.1
PING 10.0.2.1 (10.0.2.1): 56 data bytes
64 bytes from 10.0.2.1: seq=0 ttl=64 time=100.312 ms
64 bytes from 10.0.2.1: seq=1 ttl=64 time=96.339 ms
64 bytes from 10.0.2.1: seq=2 ttl=64 time=94.718 ms
64 bytes from 10.0.2.1: seq=3 ttl=64 time=102.751 ms
--- 10.0.2.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 94.718/98.530/102.751 ms
my vpn client 1
View attachment 26223View attachment 26222