차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
linux:vpnsetting [2014/06/04 17:10] – 새로 만듦 kim7463 | linux:vpnsetting [2020/09/25 10:12] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 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/ | ||