Juniper NetScreen 基於源NAT轉換

來源:互聯網
上載者:User

標籤:policy

1.NAT-Src with PAT Enabled


CLI:

set int eth1 zone trust

set int eth1 ip 10.1.1.1/24

set int eth1 nat

set int eth3 zone untrust

set int eth3 ip 1.1.1.1/24

set int eth3 route

set int eth3 dip 5 1.1.1.30 1.1.1.30

set policy from trust to untrust any any any nat src dip-id 5 permit log


2.NAT-Src with PAT Disabled


CLI:

set int eth1 zone trust

set int eth1 ip 10.1.1.1/24

set int eth1 nat

set int eth3 zone untrust

set int eth3 ip 1.1.1.1/24

set int eth3 route

set int eth3 dip 6 1.1.1.50 1.1.1.150 fix-port

set policy from trust to untrust any any any nat src dip-ip 6 permit log


3.NAT-Src with Address Shifting


CLI:

set int eth1 zone trust

set int eth1 ip 10.1.1.1/24

set int eth1 nat

set int eth3 zone untrust

set int eth3 ip 1.1.1.1/24

set int eth3 ip route

set int eth3 dip 10 shift-from 10.1.1.11 to 1.1.1.101 1.1.1.105

set address trust host1 10.1.1.11/32

set address trust host2 10.1.1.12/32

set address trust host3 10.1.1.13/32

set address trust host4 10.1.1.14/32

set address trust host5 10.1.1.15/32

set group address trust group1 add host1

set group address trust group1 add host2

set group address trust group1 add host3

set group address trust group1 add host4

set group address trust group1 add host5

set policy from trust to untrust group1 any any nat src dip-id 10 permit log


3.NAT-Src Without DIP


CLI :

set int eth1 zone trust

set int eth1 ip 10.1.1.1/24

set int eth1 nat

set int eth3 zone untrust

set int eth3 ip 1.1.1.1/24

set int eth3 route

set policy from trust to untrust any any any nat src  permit log

本文出自 “CHJ農民工” 部落格,請務必保留此出處http://3155099.blog.51cto.com/3145099/1611600

Juniper NetScreen 基於源NAT轉換

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.