Manually opening TCP ports
nepbabucxspamfree at yahoo.ca
Fri Mar 7 08:33:00 UTC 2008
Thus spoke Siraj Shaikh on Friday, 7 March 2008 at 7:47:19 +0000:
> I am just wondering if there is a utility (or any feature in FreeBSD)
> that allows me to manually open a TCP port on a machine. I am looking
> for a way that could either allow me to open ALL or many TCP ports on
> a machine.
nc -l <port>
for ((i=1025; i<1035;i++)); do nc -l $i; done
> Also, is there any way of running a service on more than a single
> port, or on all or many ports?
If you load a service and bind them to a port according to different set of configurations, it should be possible but I do not know why one might do that especially if it has dependencies on lot of other things. But it is possible definitely.
Bikal KC (Please use: nepbababucxspamfree_at_yahoo DOT ca)
Journal: http://nepbabu.livejournal.com || pubkey: see header
"Rule 6: There is no Rule 6." - Rob Pike
"Those who can make you believe absurdities, can make you commit atrocities." - FranÃ§ois-Marie Arouet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 223 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080307/73921ec7/attachment-0001.pgp
More information about the freebsd-questions