📄 sockd.8
字号:
.TH SOCKD 8 "November 21, 1994".SH NAMEsockd \- Internet firewall secure socket server (proxy server).SH SYNOPSIS\fBsockd [ \-ver | \-i | \-I ]\fP.SH DESCRIPTION\fIsockd \fR is an internet secure socket server, often referred toas a proxy server. It was designedprimarily to provide hosts within a firewall access to resourcesoutside of the firewall.Normally, hosts inside a firewall has no IP-accessibility to the networkoutside of the firewall. This reduces the risk of being intrudedby unauthorized people from the Internet. Unfortunately, withoutIP-accessibility users on the inside hosts can no longer use manyof the important tools such as telnet, ftp, xgopher, Mosaic, etc. toaccess the tremendous resources available in the Internet. With \fIsockd\fR installed on a server host, users on the otherinside hosts can gain back the lost functionalities by usingclients programs designed to work with \fIsockd\fR proxy server,e.g, \fIrtelnet\fR in place of \fItelnet\fR, \fIrftp\fR in placeof \fIftp\fR, \fIrfinger\fR in place of \fIfinger\fR,etc. Since these client programs worklike their normal counterparts without requiring direct IP-accessibilityto the Internet, convenience to the users is accomplished withoutbreaching the security. The server host that runs \fIsockd\fR doeshave to be open to the Internet, and it therefore requires specialattention to make sure that it is secure.A configuration file \fB/etc/sockd.conf\fP is used to control accessto \fIsockd\fR and its services. Permission and denial of a servicerequest can be decided based on various combinations of the requestinghost, the destination host, the type of service (destination port number),as well as the requesting user. (See \fIsockd.conf\fP(5).)If the server host is multi-homed, i.e., having more than one networkinterface and with its IP_FORWARDING turned off, it must run a multi-homedversion of \fIsockd\fP, which requires another control file\fB/etc/sockd.route\fP to decide which interface to use for connectionto any given destination host. See \fIsockd.route\fP(5). A multi-homedsockd can be run on a single-homed host as well if necessary; you justhave to set up \fB/etc/sockd.route\fP to direct all traffic throughthe host's one and only network interface.\fIsockd\fR uses \fIsyslog\fR with facility \fBdaemon\fP and level\fBnotice\fP to log its activities and errors. Typical lines looklike.nf.in +1Apr 11 08:51:29 eon sockd[636]: connected -- Connect from don(don)@abc.edu to wxy.com (telnet)Apr 11 09:24:59 eon sockd[636]: terminated -- Connect from don(don)@abc.edu to wxy.com (telnet)Apr 11 09:24:59 eon sockd[636]: 1048 bytes from abc.edu, 285143 bytes from wxy.comJun 22 18:24:54 eon sockd[884]: refused -- Connect from sam(unknown)@big.com to small.com (ftp).in -1.fiIn these lines, the first user-id is the one reported by the client program,the second one (within the parentheses) is what is reported by \fIidentd\fPon the client host.These log lines usually appear in file \fB/var/adm/messages\fP though thatcan be changed by modifying \fB/etc/syslog.conf\fP. (See \fIsyslogd\fR(8)and \fIsyslog.conf\fR(5).)If you allow access to infosystems such as Gopher or WWW,you should be aware that they by nature would tend to get connectionsto hosts all over the world and would use not only Gopher and WWW portsbut possibly also ports for finger, telnet, ftp, nntp, etc. as well asnon-privileged ports ( > 1023).For a stand-alone sockd, \fB/etc/sockd.conf\fP and \fB/etc/sockd.route\fP(if required) are only read and parsed once at the beginning of programexecution. If you change the contents of either file and want to makethe running sockd use the new contents, you must send a SIGHUP signalto the running sockd process. Sending a running stand-alone sockd aSIGUSR1 signal causes it to record the effective contents of sockd.confand sockd.route that it is currently using on the system's log file.You can find the process id of the stand-alone sockd in\fB/tmp/sockd.pid\fP..SH OPTIONSThe options are mutually exclusive and thus may only be used one at a time..TP.B\-verWith this option, \fIsockd\fR prints its own version number,whether it is a single-homed or multi-homed version, whether itshould be run stand-alone or under the control of \fIinetd\fP, and whetherit supports clients that use Rrcmd(), and then quits..TP.B\-IUse \fIidentd\fR (RFC 1413) to verify the requester's user-id. Deny access ifconnection to client's \fIidentd\fR fails or if the result does not matchthe user-id reported by the client program. Client hosts without a properlyinstalled \fIidentd\fR daemon will not be served. User verification isdone before and in addition to the normal access control. This can beoverridden in the sockd.conf file on a line by line basis..TP.B\-iSimilar to \fB-I\fP but more lenient. Access is denied only if client's\fIidentd\fR reports a user-id that's different from what the clientprogram claims. This can be overridden in the sockd.conf file on a lineby line basis..PPLog entries similar to the following are produced upon failure ofuser-id verification:.nf.in +1Apr 15 14:42:51 eon sockd[729]: cannot connect to identd on big.eduApr 15 14:42:51 eon sockd[729]: refused -- Connect from bob(unknown)@big.edu to xyz.com (ftp)Jul 15 12:23:06 eon sockd[832]: *Alert*: real user is sam, not jimJul 15 12:23:06 eon sockd[832]: refused -- Connect from jim(sam)@abc.org to bad.place.com (WWW).in -1.fi.SH FILES\fB/etc/sockd.conf\fP, \fB/etc/inetd.conf\fP, \fB/etc/services\fP,\fB/var/adm/messages\fP, \fB/etc/syslog.conf\fP.SH SEE ALSO\fIsocks_clients\fP(1), \fItest_sockd_conf\fP(8), \fIsockd.conf\fp(5),\fIsockd.route\fP(5), \fIsocks.conf\fP(5).SH AUTHOR.nfDavid Koblas, koblas@sgi.comYing-Da Lee, ylee@syl.dl.nec.comDavid Mischel, dm@kansas.gene.com
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -