Re: iptables - port forwarding help
dudahhh <gabaod@yahoo.com> writes:
> Ok, im resetting up my home network, and hence the
> reason for this letter :)
>
> I have 2 linux boxes, and 2 windows boxes. One linux
> box will be the firewall/gateway, internet on eth0 and
> internal lan on eth1. What im looking for is basic
> suggestions on my script, and also needing to know how
> i can lets say have all external connections that try
> to connect to me on port 10022 be forwarded to
> 192.168.1.8:22, so that i can be able to ssh into both
> of my linux boxes, the firewall one, and an internal
> one. Im pretty sure i have to either allow port 10022
> on the INPUT, or allow port 22 on the FORWARD, then
> also set up a PREROUTING, though each example ive
> tried ive had no success with.
There's a much easier way of forwarding ports!
apt-get install rinetd
Hope that helps,
Bijan
Reply to: