cancel
Showing results for 
Search instead for 
Did you mean: 
krmasonthg
Level 7

Cli commands for Web Gateway

Jump to solution

Can anyone point me to a document or link that would have the listing of the CLI commands for the web gateway?  I can find it for other products but for some reason it is not available for the web gateway.

0 Kudos
1 Solution

Accepted Solutions
asabban
Level 17

Re: Cli commands for Web Gateway

Jump to solution

This is what I usually do in such cases:

ifconfig eth0 192.168.0.100 netmask 255.255.255.0 up

route add default gw 192.168.0.1

The second command will allow you to access via network even from a different subnet, which might be helpful. The IP address specified there is the default gateway.

Then as Michael said connect to http://192.168.0.100:4711, login and change the network settings again. Note that there might be some settings which might still point to the old IP address, I think of Configuration -> Central Management. You may need to correct the listeners there.

If you have not configured anything so far and still have console/KVM access a re-image might be simpler and will ensure all is set up properly.

NOTE: As indicated you are not working with a "CLI" but with the operating systems (Linux) shell. Many "well known" linux commands work. If you are not familiar with Linux a search on the internet will reveal a ton of hints, just treat MWG like any other system running Linux. Therefore no special documentation is available.

Best,

Andre

0 Kudos
5 Replies
McAfee Employee

Re: Cli commands for Web Gateway

Jump to solution

The answer is simple - there is no CLI, thus no documentation.

Any specific task you are looking for?

thanks,

Michael

0 Kudos
krmasonthg
Level 7

Re: Cli commands for Web Gateway

Jump to solution

When we installed the gateway, the automatic configuration set the "obtain IP address from DHCP" of which there is no DHCP.  We need to reprogram the ports with staic IP addresses so that we can get to the User interface.  I know there is an Ifconfig but I need to know what other commands we can use.

0 Kudos
McAfee Employee

Re: Cli commands for Web Gateway

Jump to solution

makes sense!

For the time being, you want to log on to MWG locally using the shell with root and your password.

There, run ifconfig eth0 <IP>/subnet - for example: ifconfig eth0 10.1.2.3/24

Access the UI on that IP and configure the settings permanently via Configuration > Network Interfaces.

Or reimage again.

thanks,

Michael

0 Kudos
asabban
Level 17

Re: Cli commands for Web Gateway

Jump to solution

This is what I usually do in such cases:

ifconfig eth0 192.168.0.100 netmask 255.255.255.0 up

route add default gw 192.168.0.1

The second command will allow you to access via network even from a different subnet, which might be helpful. The IP address specified there is the default gateway.

Then as Michael said connect to http://192.168.0.100:4711, login and change the network settings again. Note that there might be some settings which might still point to the old IP address, I think of Configuration -> Central Management. You may need to correct the listeners there.

If you have not configured anything so far and still have console/KVM access a re-image might be simpler and will ensure all is set up properly.

NOTE: As indicated you are not working with a "CLI" but with the operating systems (Linux) shell. Many "well known" linux commands work. If you are not familiar with Linux a search on the internet will reveal a ton of hints, just treat MWG like any other system running Linux. Therefore no special documentation is available.

Best,

Andre

0 Kudos
krmasonthg
Level 7

Re: Cli commands for Web Gateway

Jump to solution

thanks everyone,

I guess I got confused between the firewall commands and the gateway commands.  I got it to work so thanks for the commands.

Ken

0 Kudos