## Last commit: 2009-09-20 17:45:35 CEST by root version 9.6R1.13; system { host-name gate-rok; domain-name bla.blubb.de; time-zone Europe/Berlin; root-authentication { encrypted-password "abc"; ## SECRET-DATA } name-server { 10.0.1.1; } services { ssh; web-management { http { interface ge-0/0/0.0; } } } syslog { 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; } } ntp { server 84.200.248.203; } } interfaces { ge-0/0/0 { mtu 1518; unit 0 { family inet { filter { input pbr-dtag-manitu; output pbr-dtag-manitu; } address 10.0.255.4/24; } } } ge-0/0/1 { vlan-tagging; unit 0 { vlan-id 3; family inet { address 47.11.08.54/29; } } } ge-0/0/14 { unit 0 { encapsulation ppp-over-ether; } } ge-0/0/15 { unit 0 { encapsulation ppp-over-ether; } } lo0 { unit 0 { family inet { address 127.0.0.1/32; } } } pp0 { unit 0 { ppp-options { pap { default-password "xyz"; ## SECRET-DATA local-name "abc@providera.de"; local-password "xyz"; ## SECRET-DATA passive; } } pppoe-options { underlying-interface ge-0/0/15.0; auto-reconnect 2; client; } family inet { mtu 1456; negotiate-address; } } unit 1 { ppp-options { pap { default-password "abc"; ## SECRET-DATA local-name "xyz@providerb.de"; local-password "abc"; ## SECRET-DATA passive; } } pppoe-options { underlying-interface ge-0/0/14.0; auto-reconnect 2; client; } family inet { mtu 1492; negotiate-address; } } } } routing-options { interface-routes { rib-group inet default; } static { rib-group default; route 0.0.0.0/0 { next-hop pp0.0; metric 5; } route 10.0.0.0/16 next-hop 10.0.255.2; } rib-groups { default { import-rib [ inet.0 dtag.inet.0 ]; } } } security { nat { source { rule-set NAT-ROK { from zone trust; to zone untrust; rule Netz-ROK { match { source-address 10.0.0.0/16; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } } destination { pool SMTP-srv-rok-ex { address 10.0.1.5/32 port 25; } rule-set DNAT-Manitu { from zone untrust; rule TO-Exchange { match { source-address 12.34.56.78/32; destination-address 87.65.43.21/32; destination-port 25; } then { destination-nat pool SMTP-srv-rok-ex; } } } } } 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; queue-size 2000; ## Warning: 'queue-size' is deprecated timeout 20; } land; } } } zones { security-zone trust { tcp-rst; address-book { address srv-rok-ex 10.0.1.5/32; address netz-rok-clients-fest 10.0.128.0/24; address netz-rok-clients-wlan 10.0.129.0/24; address netz-rok-gaeste 10.0.130.0/24; address-set clients { address netz-rok-clients-fest; address netz-rok-clients-wlan; address netz-rok-gaeste; } } interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { http; https; ssh; telnet; dhcp; ping; } } } } } security-zone untrust { address-book { address jim 8.15.47.11/32; } screen untrust-screen; interfaces { pp0.0; pp0.1; } } security-zone dmz { address-book { address jacky 47.11.08.49/32; address srv-rok-front 47.11.08.51/32; } interfaces { ge-0/0/1.0 { host-inbound-traffic { system-services { ping; ntp; traceroute; } } } } } } policies { from-zone trust to-zone trust { policy default-permit { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone untrust { policy default-permit { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone trust { policy from-untrust-to-trust-srv-rok-ex-smtp { match { source-address jim; destination-address srv-rok-ex; application junos-smtp; } then { permit; } } policy default-deny { match { source-address any; destination-address any; application any; } then { deny; } } } from-zone trust to-zone dmz { policy permit-trust-to-dmz { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone dmz to-zone trust { policy permit-dmz-to-trust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone dmz { policy from-untrust-to-dmz-jacky-any { match { source-address any; destination-address jacky; application any; } then { permit; } } policy from-untrust-to-dmz-srv-rok-front-https { match { source-address any; destination-address srv-rok-front; application [ junos-http junos-https ]; } then { permit; } } } from-zone dmz to-zone untrust { policy from-dmz-to-untrust-any { match { source-address any; destination-address any; application any; } then { permit; } } } } } firewall { family inet { filter pbr-dtag-manitu { term to-dtag { from { source-address { 10.0.128.0/24; 10.0.129.0/24; 10.0.130.0/24; } } then { routing-instance dtag; } } term default { then accept; } } } } routing-instances { dtag { instance-type forwarding; routing-options { static { route 0.0.0.0/0 next-hop pp0.1; } } } }