1
17.7 Legacy Series / Restoring config breaks LAN connectivity
« on: January 17, 2018, 10:31:17 am »
Hi guys,
I've recently started using OPNSense 17.7.5 DVD version in a test environment before putting it in a production environment replacing the basic ISP modem-router we have at the moment. With the default config, everything seems to work just fine. It's when I tinker with backup/restore config that everything goes south.
Starting config:
WAN: 192.168.1.254, gateway: 192.168.1.1
LAN: 192.168.2.1, WorkStation1 (WS1) connected via cable and given IP by DHCP: 192.168.2.100
1) WS1 pings 192.168.2.1 and google.com successfully. Can use the internet normally.
2) Backup entire config, everything works.
3) Restore that very same config xml right away.
4) Restart.
5) WS1 can ping 192.168.2.1 but can't ping google.com or even the WAN interface. Obviously can't access the internet.
I'd been banging my head against the wall with this until I finally found out what was causing it. I found it by sheer luck when taking a shot in the dark, though, as everything else seemed to be configured correctly.
I find very strange that something so crucial and used such as the backup/restore function is not working properly, but on the other hand, I managed to reproduce the problem following the steps provided above, so I came here for help.
I haven't found any issues in github related to this. What do you guys think?
Regards,
Sergio
EDIT:
I've done the same thing for the second time and this time it's worked. Right after that, I imported only the firewall rules (some basic rules to allow webgui from WAN and OpenVPN traffic) from an older backup and it broke just as I described. After disabling and erasing all these custom rules, the problem persists. Could it be that restoring firewall rules can break things down?
I've recently started using OPNSense 17.7.5 DVD version in a test environment before putting it in a production environment replacing the basic ISP modem-router we have at the moment. With the default config, everything seems to work just fine. It's when I tinker with backup/restore config that everything goes south.
Starting config:
WAN: 192.168.1.254, gateway: 192.168.1.1
LAN: 192.168.2.1, WorkStation1 (WS1) connected via cable and given IP by DHCP: 192.168.2.100
1) WS1 pings 192.168.2.1 and google.com successfully. Can use the internet normally.
2) Backup entire config, everything works.
3) Restore that very same config xml right away.
4) Restart.
5) WS1 can ping 192.168.2.1 but can't ping google.com or even the WAN interface. Obviously can't access the internet.
I'd been banging my head against the wall with this until I finally found out what was causing it. I found it by sheer luck when taking a shot in the dark, though, as everything else seemed to be configured correctly.
I find very strange that something so crucial and used such as the backup/restore function is not working properly, but on the other hand, I managed to reproduce the problem following the steps provided above, so I came here for help.
I haven't found any issues in github related to this. What do you guys think?
Regards,
Sergio
EDIT:
I've done the same thing for the second time and this time it's worked. Right after that, I imported only the firewall rules (some basic rules to allow webgui from WAN and OpenVPN traffic) from an older backup and it broke just as I described. After disabling and erasing all these custom rules, the problem persists. Could it be that restoring firewall rules can break things down?