Включается маскарад в iptables очень просто:
iptables -A FORWARD -j ACCEPT
(этой командой вы разрешили прохождение пакетов между сетевыми интерфейсами
из локальной сети 192.168.0.0/24)
iptables -A FORWARD -d 10.100.0.0/16 -j ACCEPT
(этой командой вы разрешили прохождение пакетов между сетевыми интерфейсами
в локальную сеть 192.168.0.0/24)
iptables -t nat -A POSTROUTING -o ppp0 -s 10.100.0.0/16 -j MASQUERADE
(и последняя команда — ей вы включили маскарад для сети 192.168.0.0/24).
Еще вам нужно проверить чтобы был включен forward ip в вашем ядре. Сделать это
можно командой
cat /proc/sys/net/ipv4/ip_forward
если Вы получили 1 на выходе значит все в порядке, если 0, тогда вам нужно
включить ip forward командой
echo 1 >/proc/sys/net/ipv4/ip_forward
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.info/sl/register-person?ref=I3OM7SCZ
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.info/register?ref=IHJUI7TF
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/es-AR/register?ref=UT2YTZSU
Your article helped me a lot, is there any more related content? Thanks!