iptables + openVPN 相關應用 - Linux

Table of Contents

板友好,想請教ㄧ個問題


---------------
| |
| 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 可以做到嗎 謝謝。


--

All Comments

Hedwig avatarHedwig2014-12-03
在device上做nat
Xanthe avatarXanthe2014-12-04
不過應該本來就有nat了只是需要對tun->eth1 accept
Olive avatarOlive2014-12-07
computer上新增路由192.168.30.x/24往device的10.8.0.x
Isabella avatarIsabella2014-12-10
device上也要有ip route功能