interfaces {
ge-0/0/0 {
unit 0 {
proxy-arp;
family inet {
address 173.xxx.xx.233/29;
}
}
}
ge-0/0/1 {
unit 0 {
family ethernet-switching {
vlan {
members default;
}
}
}
}
ge-0/0/2 {
unit 0 {
family ethernet-switching {
vlan {
members vlan-dmz;
}
}
}
}
ge-0/0/3 {
unit 0 {
family ethernet-switching {
vlan {
members vlan-dmz;
}
}
}
}
ge-0/0/4 {
unit 0 {
family ethernet-switching {
vlan {
members vlan-dmz;
}
}
}
}
ge-0/0/5 {
unit 0 {
family ethernet-switching {
vlan {
members default;
}
}
}
}
ge-0/0/6 {
unit 0 {
family ethernet-switching {
vlan {
members vlan-dmz;
}
}
}
}
ge-0/0/7 {
unit 0 {
family ethernet-switching;
}
}
lo0 {
unit 0 {
family inet {
address 127.0.0.1/32;
}
}
}
st0 {
unit 0 {
family inet {
address 10.255.0.2/30;
}
}
}
vlan {
unit 0 {
family inet {
address 192.168.1.254/24;
}
}
unit 5 {
family inet {
address 192.168.2.254/24;
}
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 173.xx.xx.238;
route 10.30.0.0/16 next-hop st0.0;
}
}
nat {
source {
pool src-nat-pool-data {
address {
173.xx.xx.234/32;
}
}
rule-set trust-to-untrust {
from zone trust;
to zone untrust;
rule data-test-rule {
match {
source-address 192.168.1.10/32;
destination-address 0.0.0.0/0;
}
then {
source-nat {
pool {
src-nat-pool-data;
}
}
}
}
rule source-nat-rule {
match {
source-address 0.0.0.0/0;
destination-address 0.0.0.0/0;
}
then {
source-nat {
interface;
}
}
}
}
rule-set dmz-to-untrust {
from zone dmz;
to zone untrust;
rule source-nat-rule2 {
match {
source-address 192.168.2.10/32;
destination-address 0.0.0.0/0;
}
then {
source-nat {
pool {
src-nat-pool-data;
}
}
}
}
}
}
destination {
pool dst-nat-pool-1 {
address 192.168.2.10/32 port 80;
}
rule-set rs1 {
from zone untrust;
rule r1 {
match {
destination-address 173.xx.xx.234/32;
destination-port 80;
}
then {
destination-nat pool dst-nat-pool-1;
}
}
}
}
static {
rule-set static-net03 {
from zone untrust;
rule rule1 {
match {
destination-address 173.xx.xx.237/32;
}
then {
static-nat {
prefix {
192.168.2.17/32;
}
}
}
}
}
}
proxy-arp {
interface ge-0/0/0.0 {
address {
173.xx.xx.235/32;
173.xx.xx.236/32;
173.xx.xx.237/32;
173.xx.xx.234/32;
}
}
}
}
vlans {
default {
vlan-id 1;
l3-interface vlan.0;
}
vlan-dmz {
vlan-id 5;
l3-interface vlan.5;
}
}
show route
inet.0: 15 destinations, 15 routes (14 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 00:03:50
> to 173.167.79.238 via ge-0/0/0.0
10.30.0.0/16 *[Static/5] 00:04:04
> via st0.0
10.255.0.0/30 *[Direct/0] 00:04:04
> via st0.0
10.255.0.2/32 *[Local/0] 00:04:04
Local via st0.0
173.xx.xx.232/29 *[Direct/0] 00:03:50
> via ge-0/0/0.0
173.xx.xx.233/32 *[Local/0] 00:03:55
Local via ge-0/0/0.0
173.xx.xx.234/32 *[Static/1] 00:03:55
Discard
173.xx.xx.235/32 *[Static/1] 00:03:55
Discard
173.xx.xx.236/32 *[Static/1] 00:03:55
Discard
173.xx.xx.237/32 *[Static/1] 00:03:55
Discard
192.168.1.0/24 *[Direct/0] 00:03:50
> via vlan.0
192.168.1.254/32 *[Local/0] 00:04:04
Local via vlan.0
192.168.2.0/24 *[Direct/0] 00:03:50
> via vlan.5
192.168.2.254/32 *[Local/0] 00:04:04
Local via vlan.5