Manually opening TCP ports
nepbabu
nepbabucxspamfree at yahoo.ca
Fri Mar 7 08:33:00 UTC 2008
Hi Siraj,
Thus spoke Siraj Shaikh on Friday, 7 March 2008 at 7:47:19 +0000:
> Hello
>
> 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>
bash:
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.
--
Cheers,
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
Type: application/pgp-signature
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
mailing list