IPTables ext access to service that only accepts localhost
I'm running IPTables and a particular service on a server and I have a wish to do something a bit odd.
I've got a service on this machine that will only accept connections if coming from the localhost. I don't want to change this at all.
What I do want is, on occasion, to be able to access this particular service from the outside on a non standard port. I've already setup the ACCEPT rule so that the connection comes in on the non standard port and terminates on the correct one, and the logs reflect that I'm getting a connection.
Is there anyway I can get the external IP address to appear to this service as though its coming from the localhost through IPTables?