Re: [CentOS] [Fwd: How to listen port under 1024 with non-root user]

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



You can also use iptables to redirect the packets

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp -d <your ip> --dport 25 -j REDIRECT --to-port <high port your script listens on>

I've used this for java programs in the past.

----- Original Message ----- From: "dxuranus" <dxuranus@xxxxxxxxx>
To: "centos" <CentOS@xxxxxxxxxx>
Sent: Wednesday, July 05, 2006 7:56 PM
Subject: [CentOS] [Fwd: How to listen port under 1024 with non-root user]


I make a simple mail program which need listen port 25 and 110.but i
found it's imposible , after searching with google i found non-root user
can't listen port under 1024.at first i try a script(witch lauch my
program) and use setuid but that still did't work.any way can handle
this.
Thanks for any help.



--------------------------------------------------------------------------------


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux