[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]
Configuring the SIP Proxy in the Public Zone
When you locate the SIP proxy server in an external,
or public, zone, you will typically want to configure NAT on the interface
to that zone.
Before You Begin
|
For background information, read
|
In this example, phone1 is on the ge-0/0/0.0
interface in the private zone, and the proxy server and phone2 are
on the ge-0/0/2.0 interface in the public zone. You configure source
NAT on interface 0/0/2.0 in the public zone, then create a policy
permitting SIP traffic from the public zone to the private zone and
reference the NAT interface. You also create a policy from private
to public to allow phone1 to register with the proxy server in the
public zone. See Figure 80.
Figure 80: Proxy in the Public Zone

To configure the SIP proxy in the public zone,
use either the J-Web or the CLI configuration editor.
This topic covers:
J-Web Configuration
To configure interfaces:
- Select Configuration > View and Edit > Edit Configuration. The Configuration page appears.
- Next to Interfaces, click Configure or Edit.
- Next to Interface, click Add new entry.
- In the Interface name box, type ge-0/0/0.
- Next to Unit, click Add new entry.
- Next to Interface unit number, type 0.
- Next to Inet, select the check box and click Configure.
- Next to Address, click Add new entry.
- Next to Source, type 10.1.1.1/24 and click OK.
- To configure another interface, ge-0/0/2, and address,
1.1.1.1/24, repeat Step 2 through Step 9 and click OK.
- To save and commit the configuration, click Commit.
To configure zones:
- Select Configuration > View and Edit > Edit Configuration. The Configuration page appears.
- Next to Security, click Configure or Edit.
- Next to Zones, click Configure.
- Next to Security zones, click Add new entry.
- In the Name box, type private and click OK.
- Next to Security zone, click Add new entry.
- In the Name box, type public and click OK.
- To configure an interface to the private zone, click private.
- Next to Interfaces, click Add new entry.
- Next to Interface unit box, type ge-0/0/0.0 and click OK.
- To configure an interface to the public zone, click public.
- Next to Interfaces, click Add new entry.
- Next to Interface unit box, type ge-0/0/2.0 and click OK.
- To save and commit the configuration, click Commit.
To configure addresses:
- Select Configuration > View and Edit > Edit Configuration. The Configuration page appears.
- Next to Security, click Configure or Edit.
- Next to Zones, click Configure or Edit.
- Next to Security zone, click Add new entry.
- In the Name box, type private.
- Next to Address book, click Configure or Edit.
- Next to Address, click Add new entry.
- In the Address name box, type phone1 10.1.1.3/32 and click OK.
- To configure another security zone public and address
books entries such as phone2 1.1.1.4/32 and proxy 1.1.1.3/32, repeat
Step 4 through Step 8 and click OK.
- To save and commit the configuration, click Commit.
To interface Source-Nat:
- Select Configuration > View and Edit > Edit Configuration. The Configuration page appears.
- Next to Security, click Configure or Edit.
- Next to Nat, click Configure.
- Next to Source nat, click Configure.
- Next to Address persistent, select the check box and click OK.
- Next to Interface, click Add new entry.
- In the Name box, type ge-0/0/2.0.
- Next to Allow incoming, select the check box and click OK.
- To save and commit the configuration, click Commit.
To configure policies:
- Select Configuration > View and Edit > Edit Configuration. The Configuration page appears.
- Next to Security, click Configure or Edit.
- Next to Policies, select the check box and click Configure.
- Next to Policy, click Add new entry.
- In the From zone name box, type private.
- In the To zone name box, type public and click OK.
- Under the From zone name column, click private.
- Next to Policy, click Add new entry.
- In the Policy name box, type outgoing.
- Select the Match check box.
- Select the Then check box.
- Next to Match, click Configure.
- Next to Source address, select Source address.
- Next to Source address, click Add new entry.
- From the Value keyword list, select Enter Specific
Value.
- In the Address box, type phone1 and click OK.
- From the Destination address choice list, select Destination
address.
- Next to Destination address, click Add new entry.
- From the Value keyword list, select any and click OK.
- From the Application choice list, select Application.
- Next to Application, click Add new entry.
- In the Value keyword box, type junos-sip and click OK.
- Next to Then, click Configure.
- Next to Action, select permit and click OK.
- Next to Permit, click Configure.
- Select the Source Nat check box, and click Configure.
- From the Source nat list, select Interface and
click OK.
- To save and commit the configuration, click Commit.
To configure another policy From-zone, public, and To zone,
private, follow the sequence of steps listed below:
- Select Configuration > View and Edit > Edit Configuration. The Configuration page appears.
- Next to Security, click Configure or Edit.
- Next to Policies, select the check box and click Configure.
- Next to Policy, click Add new entry.
- In the From zone name box, type public.
- In the To zone name box, type private and click OK.
- Under the From zone name column, click public.
- Next to Policy, click Add new entry.
- In the Policy name box, type incoming.
- Select the Match check box.
- Select the Then check box.
- Next to Match, click Configure.
- Next to Source address, select Source address.
- Next to Source address, click Add new entry.
- From the Value keyword list, select any and click OK.
- In the Address box, type phone2 and click OK.
- From the Destination address choice list, select Destination
address.
- Next to Destination address, click Add new entry.
- From the Value keyword list, select Enter Specific
Value.
- In the Address box, type incoming_nat_ge-0/0/2.0 and click OK.
- From the Application choice list, select Application.
- Next to Application, click Add new entry.
- In the Value keyword box, type junos-sip and click OK.
- Next to Then, click Configure.
- Next to Action, select permit and click OK.
- To save and commit the configuration, click Commit.
CLI Configuration
- Configure interfaces.
- user@host# set interfaces ge-0/0/0 unit 0 family inet
address 10.1.1.1/24
- user@host# set interfaces ge-0/0/2 unit 0 family inet
address 1.1.1.1/24
- Configure zones.
- user@host# set security zones security-zone private
- user@host# set security zones security-zone public
- user@host# set security zones security-zone private
interfaces ge-0/0/0.0
- user@host# set security zones security-zone public
interfaces ge-0/0/2.0
- Configure addresses.
- user@host# set security zones security-zone private
address-book address phone1 10.1.1.3/32
- user@host# set security zones security-zone public
address-book address phone2 1.1.1.4/32
- user@host# set security zones security-zone public address-book
address proxy 1.1.1.3/32
- Configure interface source-Nat.
- user@host# set security nat source-nat address-persistent
- user@host# set security nat interface ge-0/0/2.0 allow-incoming
- Configure policies.
- user@host# set security policies from-zone private
to-zone public policy outgoing match source-address phone1
- user@host# set security policies from-zone private
to-zone public policy outgoing match destination-address any
- user@host# set security policies from-zone private
to-zone public policy outgoing match application junos-sip
- user@host# set security policies from-zone private
to-zone public policy outgoing then permit source-nat interface
- user@host# set security policies from-zone public to-zone
private policy incoming match source-address any
- user@host# set security policies from-zone public to-zone
private policy incoming match destination-address incoming_nat_ge-0/0/2.0
- user@host# set security policies from-zone public to-zone
private policy incoming match application junos-sip
- user@host# set security policies from-zone public to-zone
private policy incoming then permit
Related Topic
[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]