如果是使用 ubuntu ,用 apt-get 套件,就會看到 /etc/init.d/openvpn 裡面
一些 code ,我在 start_vpn () function 內看到
if ! grep -q '^[[:space:]]*client-to-client' $CONFIG_DIR/$NAME.conf ; then
sysctl -w net.ipv4.conf.all.send_redirects=0 > /dev/null
看起來是假設 server.conf 內有 client-to-client 選項,他就會設定
/proc/sys/net/ipv4/conf/all/send_redirects 為 0
甚麼是 send_redirects ?
google 第一個網址就是 super user
有看有翻譯......不懂,本人沒啥網路概念,是否有強者指點我一下,謝謝。
--
一些 code ,我在 start_vpn () function 內看到
if ! grep -q '^[[:space:]]*client-to-client' $CONFIG_DIR/$NAME.conf ; then
sysctl -w net.ipv4.conf.all.send_redirects=0 > /dev/null
看起來是假設 server.conf 內有 client-to-client 選項,他就會設定
/proc/sys/net/ipv4/conf/all/send_redirects 為 0
甚麼是 send_redirects ?
google 第一個網址就是 super user
有看有翻譯......不懂,本人沒啥網路概念,是否有強者指點我一下,謝謝。
--
All Comments