I have situation as below,
Primary wan: pppoe
secondary wan: LTE
Services running: ipsec vpn
I have made LTE down when pppoe is on, and vice versa by using hotplug.d script as below,
LTE off script:
[ “$ACTION” = “ifup” ] || exit 0
if [ “$ACTION” == “ifup” ] && [ “$INTERFACE” == “wan” ] ; then
echo $(date -u) " DSL is UP shuting donw LTE" >> /root/interface.log
LTE On script:
[ “$ACTION” = “ifdown” ] || exit 0
if [ “$ACTION” == “ifdown” ] && [ “$INTERFACE” == “wan” ] ; then
echo $(date -u) " LTE is UP due to DSL down" >> /root/interface.log
What is the problem ?
when pppoe is on , LTE goes off , vpn is working fine
when pppoe disconnected, LTE kics on , vpn shift to LTE ip and working fine.
When I plug pppoe back, LTE goes off , vpn connected to pppoe IP BUT I AM UNABLE TO PING.
What I do to resolve it?
When i restart firewall vpn is back , do you have any idea what i have to modifi on firewall setting? or any other settings? i already tried restarting firewall from the same hotplug script that brings LTE up and down but didn’t help.
When i restart the firewall i get below message,
kern.notice ip_blockd re-inserting iptables…