## Last changed: 2012-09-20 23:51:03 UTC version 10.4R6.5; system { host-name JuniperSRX; root-authentication { encrypted-password "..."; ## SECRET-DATA } name-server { 208.67.222.222; 208.67.220.220; 8.8.8.8; } services { ftp; ssh; telnet; xnm-clear-text; web-management { http { interface vlan.0; } https { system-generated-certificate; interface vlan.0; } } dhcp { router { 192.168.1.1; } pool 192.168.1.0/24 { address-range low 192.168.1.2 high 192.168.1.254; } propagate-settings fe-0/0/0.0; } } syslog { archive size 100k files 3; user * { any emergency; } file messages { any critical; authorization info; } file interactive-commands { interactive-commands error; } } max-configurations-on-flash 5; max-configuration-rollbacks 5; license { autoupdate { url https://ae1.juniper.net/junos/key_retrieval; } } } interfaces { fe-0/0/0 { unit 0 { family inet { address 222.222.222.178/29; ## EXTERNAL IP VIA ISP } } } fe-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/2 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/7 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } vlan { unit 0 { family inet { address 192.168.1.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 222.222.222.177; ## GATEWAY } } protocols { stp; } security { nat { source { rule-set trust-to-untrust { from zone trust; to zone untrust; rule source-nat-rule { match { source-address 0.0.0.0/0; } then { source-nat { interface; } } } } } destination { pool Our_nat_pool { address 192.168.1.250/32; ## INTERNAL SERVER } rule-set Our_vpn_ruleset { from zone untrust; rule Our_vpn_rule { match { destination-address 192.168.1.250/32; destination-port 1723; } then { destination-nat pool Our_nat_pool; } } } } } screen { ids-option untrust-screen { icmp { ping-death; } ip { source-route-option; tear-drop; } tcp { syn-flood { alarm-threshold 1024; attack-threshold 200; source-threshold 1024; destination-threshold 2048; timeout 20; } land; } } } zones { security-zone trust { address-book { address Our_vpn_address 192.168.1.250/32; } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; } } security-zone untrust { screen untrust-screen; host-inbound-traffic { system-services { http; https; ssh; } } interfaces { fe-0/0/0.0 { host-inbound-traffic { system-services { dhcp; tftp; ssh; https; http; } } } } } } policies { from-zone trust to-zone untrust { policy trust-to-untrust { match { source-address any; destination-address any; application any; } then { permit; } } policy Our_policy { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone trust { policy Our_vpn_policy { match { source-address any; destination-address Our_vpn_address; application junos-pptp; } then { permit; } } } } } vlans { vlan-trust { vlan-id 3; l3-interface vlan.0; } }