?
Solved

How to configure SSG 140 as the edge fire wall

Posted on 2008-06-09
11
Medium Priority
?
7,140 Views
Last Modified: 2012-08-14
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.
0
Comment
Question by:Zacharia Kurian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 32

Expert Comment

by:rsivanandan
ID: 21756694
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
0
 
LVL 9

Author Comment

by:Zacharia Kurian
ID: 21757100
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.
0
 
LVL 32

Expert Comment

by:rsivanandan
ID: 21757680
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
0
Four New Appliances. Same Industry-leading Speeds.

But don't take it from us.  The Firebox M370 is Miercom tested and Miercom approved, outperforming its competitors for stateless and stateful traffic throughput scenarios.  Learn more about the M370, M470, M570 and M670 and find the right solution for your organization today!

 
LVL 9

Author Comment

by:Zacharia Kurian
ID: 21757825
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
0
 
LVL 32

Assisted Solution

by:rsivanandan
rsivanandan earned 2000 total points
ID: 21761134
>>set interface "ethernet0/2" mip 83.x.x.x host 192.168.30.100 netmask 255.255.255.255 vr "trust-vr"

I see that you were able to get the mip configured. So is there a problem now ? The only thing now required for the above mip is a policy to let the traffic come in;

set policy id 3 from "Untrust" to "Trust"  "Any" "MIP(83.x.x.x)" <service> permit log

In the above replace <service> with the service you want to allow.

Where do you hit the errors ?

Cheers,
Rajesh
0
 
LVL 9

Author Comment

by:Zacharia Kurian
ID: 21767922
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.
0
 
LVL 32

Assisted Solution

by:rsivanandan
rsivanandan earned 2000 total points
ID: 21769050
Yes you need to add a policy for outgoing connection as well.

I presume you want to allow all connections from your lan to internet allowed?

If so, just add;

set policy id 4 from trust to untrust any any any permit log

Cheers,
Rajesh
0
 
LVL 9

Accepted Solution

by:
Zacharia Kurian earned 0 total points
ID: 21785036
I found something very strange in the SSG 140. If I change the Zone of DMZ to Trust, everything is fine. When I see the logging on the DMZ before changing its Zone to Trust (en0/1) mentioning that the DNS doesn't pass through. The version of the OS is 5.4.0r3a.0 (Firewall+VPN). Does it has any bug in this version. Moreover how many MIP I can assign on the untrust?

Zac
0
 
LVL 32

Expert Comment

by:rsivanandan
ID: 21785621
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
0
 
LVL 9

Author Comment

by:Zacharia Kurian
ID: 21787701
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"
0
 
LVL 32

Expert Comment

by:rsivanandan
ID: 21789038
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
Occasionally, we encounter connectivity issues that appear to be isolated to cable internet service.  The issues we typically encountered were reset errors within Internet Explorer when accessing web sites or continually dropped or failing VPN conne…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question