• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3581
  • Last Modified:

SSG5 - commands

Hi all,

New to netscreen OS - while playing around I entered a couple extra dhcp commands and locket myself out of the box, am currentl;y consoled in and here are some of the entries in dhcp I want to remove :

set interface bgroup0 dhcp server option lease 1440000
set interface bgroup0 dhcp server option gateway 10.20.6.1
set interface bgroup0 dhcp server option netmask 255.255.255.0
set interface bgroup1 dhcp server option lease 1440000
set interface bgroup1 dhcp server option gateway 10.20.6.1 <---------remove
set interface bgroup1 dhcp server option netmask 255.255.255.0
set interface bgroup0 dhcp server ip 10.20.6.101 to 10.20.6.201
set interface bgroup1 dhcp server ip 10.25.16.101 to 10.25.16.254
clear interface bgroup1 dhcp server ip 10.20.6.101 to 10.20.6.201 <--------- remove
0
cisco20
Asked:
cisco20
  • 6
  • 6
1 Solution
 
Sanga CollinsSystems AdminCommented:
unset interface bgroup1 dhcp server option gateway 10.20.6.1

this should work. also if you type the first few words of a command then hit the 'tab' key, a list of viable variables to complete the next part of the command will be listed.

so for example type unset interface bgroup0 dhcp, then press  'tab'
0
 
cisco20Author Commented:
unset - just found it thanks. I've been using "clear" for the past half hour, new to screenos .

I thought this was the reason I can't access my firewall via the WEB UI but still can't any ideas ?
 
0
 
cisco20Author Commented:
I can't ping the gateway 10.20.6.1
0
SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

 
Sanga CollinsSystems AdminCommented:
set admin manager-ip <lan-ip> 255.255.255.0

this will allow any pc on the LAN to connect to the juniper for management. next you need to enable Webui for the LAN, which should be enabled by default, but just incase it was removed try

set interface <interface you will connect from> manage web
0
 
Sanga CollinsSystems AdminCommented:
I can't ping the gateway 10.20.6.1

if this is your LAN gateway, and traffic does indeed pass through it to the internet or VPn tunnel. then you probably have Ping turned off for this interface. the command is simillar to the one for enable web management

set interface <gateway interface> manage ping
0
 
cisco20Author Commented:
Here's my config :

Total Config size 5576:
set clock timezone -8
set clock dst recurring start-weekday 2 0 3 02:00 end-weekday 1 0 11 02:00
set vrouter trust-vr sharable
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset auto-route-export
exit
set alg appleichat enable
unset alg appleichat re-assembly enable
set alg sctp enable
set auth-server "Local" id 0
set auth-server "Local" server-name "Local"
set auth default auth server "Local"
set auth radius accounting port 1646
set admin password "nCZYAIrRJvPEcMaC3sfsjfcsJfgn"
set admin manager-ip 63.146.67.xxx 255.255.255.255
set admin manager-ip 10.20.6.2 255.255.255.255
set admin http redirect
set admin mail alert
set admin mail server-name
set admin mail mail-addr1
set admin mail traffic-log
set admin auth web timeout 10
set admin auth dial-in timeout 3
set admin auth server "Local"
set admin privilege read-write
set admin format dos
set zone "Trust" vrouter "trust-vr"
set zone "Untrust" vrouter "trust-vr"
set zone "DMZ" vrouter "trust-vr"
set zone "VLAN" vrouter "trust-vr"
set zone "Untrust-Tun" vrouter "trust-vr"
set zone "Trust" block
set zone "Trust" tcp-rst
unset zone "Untrust" block
unset zone "Untrust" tcp-rst
set zone "MGT" block
set zone "DMZ" tcp-rst
set zone "VLAN" block
unset zone "VLAN" tcp-rst
set zone "Untrust" screen tear-drop
set zone "Untrust" screen syn-flood
set zone "Untrust" screen ping-death
set zone "Untrust" screen ip-filter-src
set zone "Untrust" screen land
set zone "V1-Untrust" screen tear-drop
set zone "V1-Untrust" screen syn-flood
set zone "V1-Untrust" screen ping-death
set zone "V1-Untrust" screen ip-filter-src
set zone "V1-Untrust" screen land
set interface "ethernet0/0" zone "Untrust"
set interface "ethernet0/1" zone "DMZ"
set interface "bgroup0" zone "Trust"
set interface "bgroup1" zone "Trust"
set interface bgroup0 port ethernet0/2
set interface bgroup0 port ethernet0/3
set interface bgroup1 port ethernet0/4
set interface bgroup1 port ethernet0/5
set interface bgroup2 port ethernet0/6
unset interface vlan1 ip
set interface ethernet0/0 ip 99.25.198.xxx/29
set interface ethernet0/0 route
set interface bgroup0 ip 10.20.6.0/24
set interface bgroup0 nat
set interface bgroup1 ip 10.25.16.1/24
set interface bgroup1 nat
set interface ethernet0/0 gateway 99.25.198.xxx
set interface "ethernet0/2" description "BusinessNetwork"
unset interface vlan1 bypass-others-ipsec
unset interface vlan1 bypass-non-ip
set interface ethernet0/0 ip manageable
set interface bgroup0 ip manageable
set interface bgroup1 ip manageable
set interface ethernet0/0 manage ssh
set interface ethernet0/0 manage telnet
set interface ethernet0/0 manage ssl
set interface ethernet0/0 manage web
set interface bgroup0 manage mtrace
set interface ethernet0/1 dhcp client enable
set interface bgroup0 dhcp server service
set interface bgroup1 dhcp server service
set interface bgroup0 dhcp server enable
set interface bgroup1 dhcp server enable
set interface bgroup0 dhcp server option lease 1440000
set interface bgroup0 dhcp server option gateway 10.20.6.1
set interface bgroup0 dhcp server option netmask 255.255.255.0
set interface bgroup0 dhcp server ip 10.20.6.101 to 10.20.6.201
unset interface bgroup0 dhcp server config next-server-ip
unset interface bgroup1 dhcp server config next-server-ip
set interface "serial0/0" modem settings "USR" init "AT&F"
set interface "serial0/0" modem settings "USR" active
set interface "serial0/0" modem speed 11520
set interface "serial0/0" modem retry 3
set interface "serial0/0" modem interval 10
set interface "serial0/0" modem idle-time 10
set flow tcp-mss
unset flow tcp-syn-check
unset flow tcp-syn-bit-check
set flow reverse-route clear-text prefer
set flow reverse-route tunnel always
set domain mycompany.com
set pki authority default scep mode "auto"
set pki x509 default cert-path partial
set dns host dns1 68.94.156.1 src-interface ethernet0/0
set dns host dns2 68.94.157.1 src-interface ethernet0/0
set dns host dns3 0.0.0.0
set address "Trust" "10.20.16.1/32" 10.20.16.1 255.255.255.255
set address "Trust" "10.20.16.101/32" 10.20.16.101 255.255.255.255
set address "Untrust" "10.25.16.101/32" 10.25.16.101 255.255.255.255
set address "Untrust" "63.146.67.xxx/32" 63.146.67.20 255.255.255.255
set address "V1-Trust" "10.25.16.101/24" 10.25.16.101 255.255.255.0
set ike respond-bad-spi 1
set ike ikev2 ike-sa-soft-lifetime 60
unset ike ikeid-enumeration
unset ike dos-protection
unset ipsec access-session enable
set ipsec access-session maximum 5000
set ipsec access-session upper-threshold 0
set ipsec access-session lower-threshold 0
set ipsec access-session dead-p2-sa-timeout 0
unset ipsec access-session log-error
unset ipsec access-session info-exch-connected
unset ipsec access-session use-error-log
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
exit
set url protocol websense
exit
set policy id 1 from "Trust" to "Untrust"  "Any" "Any" "ANY" permit
set policy id 1
exit
set policy id 4 from "Untrust" to "Trust"  "Any" "Any" "ANY" permit
set policy id 4
exit
set nsmgmt bulkcli reboot-timeout 60
set ssh version v2
set ssh enable
set config lock timeout 5
unset license-key auto-update
set snmp port listen 161
set snmp port trap 162
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset add-default-route
exit
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
exit
0
 
Sanga CollinsSystems AdminCommented:
set admin manager-ip 10.20.6.2 255.255.255.255

is the computer you are trying to use the webui from have the ip address  10.20.6.2 ?
0
 
cisco20Author Commented:
I don't have VPN setup yet but I used to be able to telnet and am directly attached to the box.
0
 
cisco20Author Commented:
sorry hit enter too soon, My laptop is getting a dhcp address but I've also tried using a static 10.200.6.2 addy and didn't work
0
 
Sanga CollinsSystems AdminCommented:
dont worry about the VPN it will not affect your management ability for now. So i assume you are connected via the console port using hyperterm or another similar software right? if not please let me know.

also this line set admin manager-ip 10.20.6.2 255.255.255.255

specifies that only a computer with the ip address 10.20.6.2 can manage the device. if this is not your ip address you will not be able to manage either by telnet or webui.

you can unset this setting and instead have

set admin manager-ip 10.20.6.1 255.255.255.0

which means any computer in the subnet 10.20.6.x can manage the device.

let me know what you have setup
0
 
cisco20Author Commented:
Found out the problem was that my internet address changed between yesterday and today so i didn't have the "set admin manager-ip" assigned to it yet. All I did this morning was change the dhcp local on the firewall s oreally had nothing to do with it.
Thanks for your help with the commands.  
0
 
Sanga CollinsSystems AdminCommented:
not a problem, glad to be assistance either way.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now