tengo un droplet con Debian 9.12 x64 en el cual hice un server vpn el cual esta funcionando y tiene conexiones ahora necesito es hacer un forwarding a la ip 192.168.245.2 puerto 8270 como puedo hacerlo ?
intente via ip tables y no funciona
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
intente de esta manera pero no funciona:
sysctl net.ipv4.ip_forward=1 iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 8270 -j DNAT --to-destination 192.168.245.1:8270 iptables -A FORWARD -p tcp -d 192.168.245.2 --dport 8270 -j ACCEPT iptables -A POSTROUTING -t nat -s 192.168.245.2 -o eth0 -j MASQUERADE
intente de esta otra manera:
sysctl net.ipv4.ip_forward=1 iptables -t nat -A PREROUTING -p tcp --dport 8270 -j DNAT --to-destination 192.168.245.2:8270 iptables -t nat -A POSTROUTING -j MASQUERADE
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.