推 jjooeeyy:謝謝回答 但我是希望Client eth0 跟Server 不要連到eth1 12/24 02:23
※ 引述《jjooeeyy (章魚燒)》之銘言:
: 以下是我架構大概的略圖
: Server ------Linux Router---eth0------Client
: |
: eth1(NAT)
: |
: |
: Client
: 我希望eth1的client可以用NAT連線到Server跟eth0 Client
: 但我不希望Server跟eth0的Client可以連線到eth1
: 請問這樣我的規則要怎麼下才正確
: 謝謝
==============================
iptables -t nat -A POSTROUTING -s "NAT's domain" -o eth1 -j MASQUERADE
by vbird
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.87.129.115