On Mon, December 5, 2005 09:09, Karoly VEGH wrote: > > Hello, > > > I have an application that wants to connect to a service on localhost. > Not configurable. Hardcoded. Though now we want to move the application, > and it should connect to a remote host with the service necessary > running on it. > So we need portforwarding(with keep state I guess), but although I read > the docs, search the archives, I don't quite get how to map/rdr > 127.0.0.1:1234 to 1.2.3.4:3306 ... what is the right syntax please? > > I have tried things like: > > rdr lo0 127.0.0.1 port 3306 -> 193.154.165.116 port 3306 > (syntax error error at "lo0", line 52) > > or: > rdr hme1 127.0.0.1 port = 3306 -> 193.154.165.116 port = 3306 > (syntax error error at "hme1", line 52) >
rdr lo0 127.0.0.1/32 port 3306 -> 193.154.165.116 port 3306 should do the trick. I don't know why you got the "error at 'lo0'" bit, that should work fine. Maybe a bug because you forgot the /32
