1

iptables port redirection.

view story
linux-howto

https://bbs.archlinux.org – Hello all, I've set up a virtual machine via VirtualBox (both host/guest are Arch x64) as a small development webserver. The VM is connected via NAT and has ports forwarded to the host for SSH and HTTP. HTTP has been linked to the host's 8080 but I would like to redirect this to the host's 80 via iptables, as assigning it to 80 directly needs root privileges on the VM.So: VM port 80 -> Host port 8080 -> Iptables -> Host port 80.My iptables.rules is as follows:# Generated by iptables-save v1.4.12 on Mon Sep 5 06:25:32 2011 *filter :INPUT ACCEPT [40:2890] :FORWARD ACCEPT (HowTos)