[問題] iptables + openVPN 相關應用

看板Linux作者 (非常念舊)時間11年前 (2014/12/02 17:43), 11年前編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/6 (看更多)
板友好,想請教ㄧ個問題 --------------- | | | vpn server | | | |-------------| ↑ ↑ tun:10.8.0.x tun:10.8.0.x eth1:192.168.30.1 --------- ------------ device computer --------- ------------- ↓↓↓↓ b1b2b3b4 b1~b4:192.168.30.X device 和 coumputer 連上 server 後在同個網域,可以互相 ping 到,也可以 ping 到 servver, b1~b4 可以 ping 到 counputer ,但 computer 無法 ping 到 192.168.30.X 這 iptables 可以做到嗎 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 211.21.170.157 ※ 文章網址: http://www.ptt.cc/bbs/Linux/M.1417513428.A.3FF.html

12/02 17:46, , 1F
在device上做nat
12/02 17:46, 1F

12/02 17:47, , 2F
不過應該本來就有nat了只是需要對tun->eth1 accept
12/02 17:47, 2F

12/02 20:35, , 3F
computer上新增路由192.168.30.x/24往device的10.8.0.x
12/02 20:35, 3F

12/02 20:38, , 4F
device上也要有ip route功能
12/02 20:38, 4F
※ 編輯: gn00618777 (114.25.89.74), 12/02/2014 21:16:30
文章代碼(AID): #1KVOdKF_ (Linux)
討論串 (同標題文章)
文章代碼(AID): #1KVOdKF_ (Linux)