This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XG - pointopoint configuration - automatic script after boot?

Hello,

i finally got the XG working on a HETZNER datacenter, with pointopoint configuration.

Many thanks to this thread: https://community.sophos.com/products/xg-firewall/f/initial-setup/91528/initial-setup-from-serial-console

But the XG forgets the necessary settings after every reboot, so i need to do this after every boot:

CLI:
1. enter admin password
2. select 5. device management
3. select 3. advanced shell
4. ifconfig Port1 pointopoit gateway-ip-address
5. route add default gw gateway-ip-address

after that i can access the webinterface via WAN.

is there any possibility to automatically do 4. and 5. after a reboot?

I just don't want to do that manually every time.

Any help is appreciated.

Thanks!



This thread was automatically locked due to age.
Parents Reply Children
  • Hello,

    thanks for your reply.

    I tried this now, but this also doesn't work.

    If i change the /32 to a /30 it tells me that "Interface IP and gateway IP address must be in the same network".
    So i can't save the settings.
    Reason: my wan nic ip-address is a public ip-address provided by the hoster, which usually doesn't match the private subnet 172.31.1.1.

    I only get this running if i do step 4. and 5. described above via shell after every boot.

     

    Is there any way to run these two steps automatically?