Unread post by turkeyleg » Thu Jul 16, 2015 5:06 am

Enable multiple gateways options not persisting across reboots --

When VPN is always-on, and 'enable multiple gateways' is selected, prior to reboot, external access to the NAS works just fine. When the NAS is rebooted however, external access is lost. The only way to restore external access is to uncheck, save, recheck and save again both options under the advanced settings in 'network'. I believe there is a bug in the process.

I did a file compare across reboots, and in /etc/iproute2/ there are a few files that change after rebooting, I believe causing the issue.

/etc/iproute2/config

/etc/iproute2/config/multi_table_config

/etc/iproute2/config/eth0-table-rule

/etc/iproute2/rt_tables



For me, When multiple gateways is selected, /etc/iproute2/config/eth0-table-rule appears as follows:





eth0-table-rule

[eth0_policy]

mask=255.255.255.0

ip=192.168.1.10

ifname=eth0

gateway=192.168.1.10

[multi-gateway]

mask=

ip=

ifname=eth0

gateway=192.168.1.1



after reboot, this file is blanked out and completely empty. If this file is modified and you execute /usr/syno/sbin/synoservicectl --restart network, external access will be lost again, leading me to believe that this file helps dictate the multiple gateways situation. My initial thought was to create a script to restore this file, but I know you don't support SSH/console access (which is frustrating by the way!).

SO,

I wanted to submit this to you and ask that you resolve this issue in a future update, identify this as a bug, and possibly provide me with an interim solution.



I have scoured the web literally for months in search of a solution to this problem. Please help!!

I can't be the only person who wants to host content inbound while keeping the VPN on for outbound traffic.

Thank you!