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

Setting IP and hostname through commandline

I recently downloaded sophos vmware utm-9.003-esx-v5-x86-smp file for evaluation. Upon successfully deploying ovf on ESX 5.1 and powering on the VM
it gets an IP 192.168.0.1. Also Sophos throws a Welcome message stating

"support  is void if any changes to config is made by root. It says that use Sophos WebAdmin UI to do any config changes"

By this, cant i change/set hostname and IP address using commands
like 
hostname -v ***
ip addr add dev eth0 X.x.x.x/24
ip link set up dev eth0
route add -net x.x.x.x netmask 255.255.255.0 dev eth0
route add default gw x.x.x.x dev eth0

After doing the above config changes, the IP and hostname is effective untill the session ends ( I mean till next reboot happens). Isn't this commandline configuration persistent even though i do reboot.

Is it mandatory that i should use webadmin GUI to set up changes to config

Also
can't i use IPTables command to add rules to sophos for setting Nat rules, port forwarding

Sophos also provides a cc comandline utility to do some config. Where can i get the document of syntax and supported commands, any online help doc available

regards,
Vijay


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

    Isn't this commandline configuration persistent even though i do reboot.

    No it isn't. The UTM's configuration control system automatically (re)sets parameters on boot. The only way to make it persistent is through WebAdmin or 'cc' (the commandline client)

    Is it mandatory that i should use webadmin GUI to set up changes to config

    If you have a support contract or commercial license with Sophos for your UTM, yes. The only time you'd normally make changes at the command line are when directed by Sophos support or your Sophos Partner

    can't i use IPTables command to add rules to sophos for setting Nat rules, port forwarding

    Changes will not persist across reboots so there's no point.

    The big thing to understand about the command line in Sophos UTM is that it's intended more for diagnostic & recovery purposes by qualified techs. The command line client 'cc' does not, to my understanding, do the same sanity checks to your config that WebAdmin does. This means you can break things very badly, very easily, very quickly.

    That said, there are a few safe tweaks posted here on the forum which are only accessible through the command line. Like anything not officially sanctioned by Sophos, you do so at your own risk however.[:)]