Juniper
瞻博網路 SSG5 幫助!
防火牆中的新手在這裡。. .我需要我的信任區才能訪問網際網路,但問題是我無法實現。到目前為止,從信任區域,我可以 ping 不信任區域中的 IP,但無法 ping 信任區域或 bgroup0 中的 IP。
我還可以在信任區域內使用 telnet 到不信任區域。
這是我的配置:
{ unset key protection enable set clock timezone 0 set vrouter trust-vr sharable set vrouter "untrust-vr" exit set vrouter "trust-vr" unset auto-route-export exit set alg appleichat enable unset alg appleichat re-assembly enable set alg sctp enable 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 "I'm an idiot for including my password on a public site" set admin auth web timeout 10 set admin auth dial-in timeout 3 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 unset zone "V1-Trust" tcp-rst unset zone "V1-Untrust" tcp-rst set zone "DMZ" tcp-rst unset zone "V1-DMZ" tcp-rst 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 "Untrust" set interface "ethernet0/1" zone "DMZ" set interface "bgroup0" zone "Trust" set interface bgroup0 port ethernet0/2 set interface bgroup0 port ethernet0/3 set interface bgroup0 port ethernet0/4 set interface bgroup0 port ethernet0/5 set interface bgroup0 port ethernet0/6 unset interface vlan1 ip set interface ethernet0/0 ip 192.168.200.225/24 set interface ethernet0/0 route set interface bgroup0 ip 192.168.201.1/24 set interface bgroup0 nat set interface ethernet0/0 gateway 192.168.200.1 set interface "ethernet0/0" pmtu ipv4 set interface "bgroup0" pmtu ipv4 unset interface vlan1 bypass-others-ipsec unset interface vlan1 bypass-non-ip set interface ethernet0/0 ip manageable set interface bgroup0 ip manageable set interface ethernet0/0 manage ping set interface ethernet0/0 manage ssh set interface ethernet0/0 manage telnet set interface ethernet0/0 manage snmp set interface ethernet0/0 manage ssl set interface ethernet0/0 manage web set interface ethernet0/0 manage ident-reset set interface bgroup0 manage mtrace set interface bgroup0 dhcp server service set interface bgroup0 dhcp server auto set interface bgroup0 dhcp server ip 192.168.201.10 to 192.168.201.20 unset interface bgroup0 dhcp server config next-server-ip set interface "serial0/0" modem settings "USR" init "AT&F" set interface "serial0/0" modem settings "USR" active set interface "serial0/0" modem speed 115200 set interface "serial0/0" modem retry 3 set interface "serial0/0" modem interval 10 set interface "serial0/0" modem idle-time 10 set flow tcp-mss unset flow tcp-syn-check unset flow tcp-syn-bit-check set flow reverse-route clear-text prefer set flow reverse-route tunnel always set pki authority default scep mode "auto" set pki x509 default cert-path partial set crypto-policy exit set ike respond-bad-spi 1 set ike ikev2 ike-sa-soft-lifetime 60 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 vrouter "untrust-vr" exit set vrouter "trust-vr" exit set url protocol websense exit set policy id 1 from "Trust" to "Untrust" "Any" "Any" "ANY" permit set policy id 1 exit set policy id 2 from "Untrust" to "Trust" "Any" "Any" "ANY" permit set policy id 2 exit set policy id 3 from "Trust" to "Trust" "Any" "Any" "ANY" permit set policy id 3 exit set nsmgmt bulkcli reboot-timeout 60 set ssh version v2 set config lock timeout 5 unset license-key auto-update set telnet client enable 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" exit }
第一件事與其說是修復,不如說是一個建議——不要將你的介面置於 NAT 模式。進入界面,進入路由模式。然後進入 Trust -> Untrust policy 頁面,選擇您的 any/any/any 策略,然後點擊 Advanced,將規則置於 Source Nat 模式。當您點擊應用並保存時,規則的圖示應變為藍色。(為什麼要這樣做?它在策略頁面上清楚地表明 NAT 正在發生。它還使您可以靈活地通過防火牆進行非 NAT,如果您願意。)
第二。您的“不信任”地址是 192.168.200.x/24 - 看起來像是保留的 IP。能ping通防火牆不信任網關192.168.200.1嗎?您確定 /24 是正確的蒙版尺寸嗎?您可以使用這些參數在“不信任”網路上設置系統並連接到網際網路嗎?你能弄清楚預設網關之後的下一跳 IP 是什麼,並得到它嗎?
第三。您似乎沒有將 DNS 設置為 DHCP 選項,因此您的 DHCP 客戶端沒有獲得 DNS 伺服器。這是故意的嗎?
第四。除非來自“不信任”端的 IP 將啟動與信任端的連接,否則您不需要策略 2。使用策略 1,流回信任方的流量被暗示允許關聯。
第五。除非您有多個標記為信任的安全區域(您不需要),否則您不需要信任 -> 信任規則。
第六。您似乎正在通過不信任界面進行所有管理。這可能是您想要的,但在我看來,它允許不信任網路訪問您的管理。