How to add a Static Route to the USS Gateway
This article will provide the steps required to add a Static Route to the USS Gateway via the command line.
- Ensure you have logged in to the USS Gateway command line
- Elevate permissions to root by typing:
sudo su
and entering the password. - To view the gateway routing table use the command:
route -n
Make a note of the interface name, in this example, it is enp0s3.
- Use nano or vi to edit (or create if it doesn't exist) the custom firewal file e.g.
nano /etc/ussgw_custom_firewall
- If newly created (empty) add
#!/bin/bash
as the first line - Add your route command i.e.
route add -net 40.0.0.0 netmask 255.0.0.0 gw 10.0.5.1 dev enp0s3
(remember to add the correct interface name identified in step 3)
- Save the file. It should now look like this:
#!/bin/bash
route add -net 40.0.0.0 netmask 255.0.0.0 gw 10.0.5.1 dev enp0s3
- If the file was newly created, make sure it is executable by running
chmod +x /etc/ussgw_custom_firewall
- Finally, restart the sysmond process by running:
service ussgw_sysmond restart
Once these steps have been completed the new Static Route will be added to the Gateway.