차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
마지막 판양쪽 다음 판 | |||
linux:vpnsetting [2014/06/04 17:10] – 새로 만듦 kim7463 | linux:vpnsetting [2014/07/27 16:19] – kim7463 | ||
---|---|---|---|
줄 26: | 줄 26: | ||
nat setting | nat setting | ||
- | /setc/ | + | /etc/ |
echo 1 > / | echo 1 > / | ||
+ | |||
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE | iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE | ||
+ | |||
iptables -t nat -A POSTROUTING -s 10.8.0.0/ | iptables -t nat -A POSTROUTING -s 10.8.0.0/ | ||