Solved

How to configure SSG 140 as the edge fire wall

Posted on 2008-06-09
11
7,122 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
Defend Your Organization from The Greatest Threats

Looking to fill the gaps in your security? Bring together information from the network, endpoint and threat intelligence feeds to really see what's happening in your organization. Join the WatchGuardians in their adventures fighting cyber crime!

 
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 500 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 500 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

Are You Ransomware's Next Victim?

Worried about ransomware attacks hitting your organization?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with WatchGuard Total Security!

Question has a verified solution.

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

Network traffic routing plays key role in your network, if you have single site with heavy browsing or multiple sites, replicating important application data from your Primary Default Gateway ,you have to route your other network traffic from your p…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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