Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

redirecting outgoing traffic



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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org