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
  • XG does not support WAN Point to Point interfaces. Thats the reason, the WEB Gui is prevent to do so. 

    We can achieve this with custom gateway and SD-WAN PBR(Policy based Routing):

    Create WAN Interface base static route for gw IP in different subnet.
    Add a custom Gateway for gw IP. Use that custom gw in PBR.

    So basically configure the Interface as a normal interface.

    Create a route / gateway for this interface to WAN. 

    Use PBR or static routing to route everything to that direction.