NODE_MODULES Telegram 40
О чем не стоит забывать при настройке своего OpenVPN.
Прописываем правила iptables. Нужно разрешить клиентам из подсети 10.8.0.0/24 доступ в интернет, разрешить принимать пакеты из интернета и пропустить трафик клиентов через NAT.

iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

Чтобы правила не сбросились после перезагрузки, добавляем их в /etc/rc.local.

Включаем форвардинг в ядре: в /etc/sysctl.conf добавляем (или раскомментируем) строку

net.ipv4.ip_forward=1

Чтобы форвардинг заработал без перезагрузки, делаем

$ echo 1 > /proc/sys/net/ipv4/conf/all/forwarding

#vpn #openvpn



tgoop.com/node_modules/40
Create:
Last Update:

О чем не стоит забывать при настройке своего OpenVPN.

Прописываем правила iptables. Нужно разрешить клиентам из подсети 10.8.0.0/24 доступ в интернет, разрешить принимать пакеты из интернета и пропустить трафик клиентов через NAT.

iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

Чтобы правила не сбросились после перезагрузки, добавляем их в /etc/rc.local.

Включаем форвардинг в ядре: в /etc/sysctl.conf добавляем (или раскомментируем) строку

net.ipv4.ip_forward=1

Чтобы форвардинг заработал без перезагрузки, делаем

$ echo 1 > /proc/sys/net/ipv4/conf/all/forwarding

#vpn #openvpn

BY Заметки фронтендера


Share with your friend now:
tgoop.com/node_modules/40

View MORE
Open in Telegram


Telegram News

Date: |

On Tuesday, some local media outlets included Sing Tao Daily cited sources as saying the Hong Kong government was considering restricting access to Telegram. Privacy Commissioner for Personal Data Ada Chung told to the Legislative Council on Monday that government officials, police and lawmakers remain the targets of “doxxing” despite a privacy law amendment last year that criminalised the malicious disclosure of personal information. While some crypto traders move toward screaming as a coping mechanism, many mental health experts have argued that “scream therapy” is pseudoscience. Scientific research or no, it obviously feels good. How to create a business channel on Telegram? (Tutorial) It’s yet another bloodbath on Satoshi Street. As of press time, Bitcoin (BTC) and the broader cryptocurrency market have corrected another 10 percent amid a massive sell-off. Ethereum (EHT) is down a staggering 15 percent moving close to $1,000, down more than 42 percent on the weekly chart. Users are more open to new information on workdays rather than weekends.
from us


Telegram Заметки фронтендера
FROM American