Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not being too familiar with `iptables` myself, I'd love to see the magic invocation they used. Anyone have any idea what that would have looked like?


I'm guessing something like this would work

# Redirect port 8080 to local port 22

iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 8080 -j REDIRECT --to-port 22


Something on the order of

iptables -t nat -I PREROUTING -p tcp --dport NNNN -j REDIRECT --to-ports 22




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: