Link to home
Start Free TrialLog in
Avatar of Zacharia Kurian
Zacharia KurianFlag for Kuwait

asked on

How to configure SSG 140 as the edge fire wall

I have purchased Juniper SSG 140 Firewall + VPN appliance. Currently I am using ISA as the edge fire wall. Now I want use SSG 140 as the edge. I have to NAT (one -one) 4 Servers to SSG. I have 4 public IPS with me. I am totally new to SSG 140.

I need to know the step by step procedures to configure the en/0, en0/1 and en0/3 (trust, Untrust and DMZ). I
To which Interface I have to use MIP and how for the servers which I have to NAT. (the private Ip range for the NAT serves is 192.168.30.0/24).

How should be the policies to allow traffic for the NAT servers.

I prefer to use the WEBUI for the SSG not CLI.
Avatar of rsivanandan
rsivanandan
Flag of India image

It would be difficult to show a step by step for webui configuration, first I'd suggest to take a look at this;

http://www.rsivanandan.com/?p=108

I wrote that for a low end device, except for the interface namings, everything else would apply to you.

Cheers,
Rajesh
Avatar of Zacharia Kurian

ASKER

Well I had look at it before posting my question. A couple of doubts

The interface en0/2  is used for untrust (out side) i.e. I have to assign one of the Public IP I have.
The MIP has to be done on the untrust ie public ip - private IP - net mask of the public IP. I am getting confused over here. When I try to MIP one of my Public IP ( I have 4 IPS- mask 255.255.255.240) I get an error that "one ip range is used by (sub) interface Ethernet 0/2".

I have to use the 3 Public IP for different servers by MIP. Can you shed some light on it.
I'm not sure how you're doing it, can you post the config what you have as of now and then I'll see if there is anything that needs to be modified.

Cheers,
Rajesh
set clock ntp
set clock timezone 3 30
set vrouter trust-vr sharable
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset auto-route-export
set protocol pim
exit
exit
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 name "4fadminnts"
set admin password "nIlrHxrZImtLcR1FEsHJaNBt1JCQzn"
set admin auth timeout 10
set admin auth server "Local"
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" tcp-rst
set 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 "Trust"
set interface "ethernet0/1" zone "DMZ"
set interface "ethernet0/2" zone "Untrust"
set interface ethernet0/0 ip 192.168.2.200/24
set interface ethernet0/0 nat
unset interface vlan1 ip
set interface ethernet0/1 ip 192.168.30.1/24
set interface ethernet0/1 nat
set interface ethernet0/2 ip 83.x.x.x/28
set interface ethernet0/2 route
set interface ethernet0/2 gateway 83.x.x.x
unset interface vlan1 bypass-others-ipsec
unset interface vlan1 bypass-non-ip
set interface ethernet0/0 ip manageable
unset interface ethernet0/1 ip manageable
unset interface ethernet0/2 ip manageable
set interface ethernet0/2 manage ping
set interface vlan1 manage mtrace
set interface "ethernet0/2" mip 83.x.x.x host 192.168.30.100 netmask 255.255.255.255 vr "trust-vr"
unset flow no-tcp-seq-check
set flow tcp-syn-check
set domain fourfilms.com
set hostname 4FILMS
set pki authority default scep mode "auto"
set pki x509 default cert-path partial
set dns host dns1 192.168.2.2 src-interface ethernet0/0
set dns host dns2 192.168.2.3 src-interface ethernet0/0
set dns host dns3 0.0.0.0
set address "Trust" "192.168.3.100/24" 192.168.3.100 255.255.255.0
set ike respond-bad-spi 1
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 url protocol websense
exit
set policy id 2 from "Untrust" to "DMZ"  "Any" "Any" "ANY" permit log
set policy id 2
exit
set policy id 1 from "Trust" to "Untrust"  "Any" "Any" "ANY" nat src dst ip 192.168.30.100 port 80 permit log
set policy id 1
exit
set nsmgmt bulkcli reboot-timeout 60
set ssh version v2
set config lock timeout 5
set ntp server "nist.gov.kw"
set ntp server src-interface "ethernet0/2"
set ntp server backup1 "0.0.0.0"
set ntp server backup2 "0.0.0.0"
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"
set protocol pim
exit
exit

These are just the config which I did when I started with the SSG (rapid Deployment wizard). Kindly not that I am only a beginner and I am very much used to ISA only.

What I want to achieve is this.

Untrust- has to be configured for outside access (internet)
I have to NAT 3 Public IPS to private IPS for ISA (web proxy), Exchange and Black Berry.
I have to connect Symantec SMS8340 to the SSG to use for SMTP.
I do not want to use DMZ rather only one-one NAT for the above 3 servers

Thanks in advance
SOLUTION
Avatar of rsivanandan
rsivanandan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Rajesh,

Thanks for the tip. I did add that policy as per your advice and I added the services http, https,dns etc for the internet  browsing on a server which is connected to the DMZ. This server has 2 net work interfaces. one is configured with a 192.168.2.0/24 (and is joined to my domain) the other inter face is same as the DMZ subnet of SSG, which 192.168.30.0/24.

Now the trouble is that I can not access internet on this server. Am I missing any policy or any other settings?

Zac.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I thought from beginning we're working on trust/untrust pair and you didn't want the DMZ zone???

I don't know the limit of MIP, but you can for sure configure what you have.

Cheers,
Rajesh
Rajesh,

Thanks for the reply. I am attaching the config file.pls, have a look and tell me what to do.

set clock dst-off
set clock timezone 3
set vrouter trust-vr sharable
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset auto-route-export
exit
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 name "netscreen"
set admin password "nDC0GjreNnlGcIPHTsGOUAFt6BJZdn"
set admin user "zac" password "nFrqKPr8BWVJcs4INstHtYFtOvLOln" privilege "all"
set admin http redirect
set admin auth timeout 10
set admin auth server "Local"
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" tcp-rst
set 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 "Trust"
set interface "ethernet0/1" zone "DMZ"
set interface "ethernet0/2" zone "Untrust"
set interface "ethernet0/3" zone "Trust"
set interface ethernet0/0 ip 192.168.2.200/24
set interface ethernet0/0 nat
unset interface vlan1 ip
set interface ethernet0/1 ip 192.168.30.1/24
set interface ethernet0/1 nat
set interface ethernet0/2 ip 83.96.37.196/28
set interface ethernet0/2 route
set interface ethernet0/2 gateway 83.96.37.193
unset interface vlan1 bypass-others-ipsec
unset interface vlan1 bypass-non-ip
set interface ethernet0/0 ip manageable
unset interface ethernet0/1 ip manageable
set interface ethernet0/2 ip manageable
set interface ethernet0/3 ip manageable
set interface ethernet0/2 manage ping
set interface vlan1 manage mtrace
set interface "ethernet0/2" mip 83.96.37.194 host 192.168.30.2 netmask 255.255.255.255 vr "trust-vr"
set interface "ethernet0/2" mip 83.96.37.197 host 192.168.30.3 netmask 255.255.255.255 vr "trust-vr"
set interface "ethernet0/2" mip 83.96.37.195 host 193.168.30.100 netmask 255.255.255.255 vr "trust-vr"
unset flow no-tcp-seq-check
set flow tcp-syn-check
set domain fourfilms.com
set hostname 4Films
set pki authority default scep mode "auto"
set pki x509 default cert-path partial
set dns host dns1 62.215.6.4 src-interface ethernet0/2
set dns host dns2 62.215.6.5 src-interface ethernet0/2
set dns host dns3 192.168.2.2
set dns host schedule 06:28
set address "DMZ" "Black Berry" 192.168.30.5 255.255.255.0 ".198"
set address "DMZ" "Exchange" 192.168.30.3 255.255.255.0 ".197"
set address "DMZ" "FTP" 192.168.30.4 255.255.255.0 ".195"
set address "DMZ" "ISA" 192.168.30.2 255.255.255.0 ".194"
set ike respond-bad-spi 1
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 url protocol websense
exit
set anti-spam profile ns-profile
 set sbl default-server enable
exit
set policy id 3 name "ISA-Inbound" from "Untrust" to "DMZ"  "Any" "MIP(83.96.37.x)" "ANY" permit log
set policy id 3
exit
set policy id 4 name "test" from "Untrust" to "DMZ"  "Any" "MIP(83.96.37.x)" "ANY" permit log
set policy id 4
exit
set policy id 5 name "Inbound-FTP" from "Untrust" to "DMZ"  "Any" "MIP(83.96.37.x)" "FTP" permit log
set policy id 5
exit
set policy id 6 from "Trust" to "Untrust"  "Any" "Any" "ANY" permit log
set policy id 6
exit
set policy id 7 from "DMZ" to "Untrust"  "Any" "Any" "ANY" permit log
set policy id 7
exit
set nsmgmt bulkcli reboot-timeout 60
set ssh version v2
set config lock timeout 5
set ntp server "0.0.0.0"
set ntp server backup1 "0.0.0.0"
set ntp server backup2 "0.0.0.0"
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"
Can you tell me what is not working now? I need to know the problem to offer any help. Looks like you've configured the MIP and policies.

Cheers,
Rajesh