redirecting outgoing traffic

Kevin Falcone kevinfal at seas.upenn.edu
Wed Jun 28 02:08:30 EDT 2000


I am trying to configure the firewall machine on my network to
redirect all outgoing traffic headed for port 25 on a remote machine
to a different port.  Port 2525 is an ssh tunneled connection to the
network with an smtp server that I relay off of.  I would like to
redirect all of my outgoing to smtp traffic to that high port.  

I have tried variations on the following with no luck

/sbin/ipchains -A output -p tcp -j REDIRECT 25 -d localhost 2025

I am told that I can't redirect on output or forward.

Is there a way to do this, or am I stuck with my particularly hackish
perl replacement for sendmail.

-kevin

-- 
Kevin Falcone <kevinfal at seas.upenn.edu>

Give a man a fish and you feed him for a day; give him a freshly-charged
Electric Eel and chances are he won't bother you for anything ever again
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list