HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 66

Configuring inetd

Page 66 highlights

Configuring TCP/IP 1. Change the host's IP address in the /etc/hosts file. 2. Change the IP_ADDRESS[n] variable in the /etc/rc.config.d/netconf file to the new IP address. 3. If the host is on a network that uses BIND, change the host's IP address in the data files of the authoritative name servers. If the host is on a network that uses NIS, change its IP address in the /etc/hosts file on the NIS master server, and issue the following commands to regenerate the hosts database and push it out to the NIS slave servers: # cd var/yp # /usr/ccs/bin/make hosts 4. If the host is moving to a different subnet, change the ROUTE_DESTINATION, ROUTE_GATEWAY, and BROADCAST_ADDRESS[n] variables in /etc/rc.config.d/netconf. If the host is moving to a nework that uses a different subnet mask, change the SUBNET_MASK[n] variable in /etc/rc.config.d/netconf. 5. If the host is moving to a different network, you may have to configure new routes for it. 6. If the host is on a network that uses gated, change its IP address on all the gated routers. 7. If the host is a BOOTP client, change its IP address in the /etc/bootptab file on the BOOTP server. If the host is a BOOTP server, and a BOOTP relay agent is configured to relay boot requests to the host, change the host's IP address in the /etc/bootptab file on the BOOTP relay agent. 8. If the host is an NTP server, change its IP address in the /etc/ntp.conf file on NTP clients. If the host is an NTP client and is moving to another network, you might have to configure a different NTP server in its /etc/ntp.conf file. 9. Reboot the host. Configuring inetd The inetd daemon is always started as part of the boot process by the startup script /sbin/init.d/inetd. In addition to the /etc/inetd.conf configuration file, you can configure an optional security file called /var/adm/inetd.sec, which restricts access to the services started by inetd. 1. Make sure the following lines exist in /etc/inetd.conf. If any of the lines starts with a pound sign (#), remove it to enable the service. ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l telnet stream tcp nowait root /usr/lbin/telnetd telnetd tftp dgram udp wait root /usr/lbin/tftpd tftpd bootps dgram udp wait root /usr/lbin/bootpd bootpd finger stream tcp nowait bin /usr/lbin/fingerd fingerd login stream tcp nowait root /usr/lbin/rlogind rlogind shell stream tcp nowait root /usr/lbin/remshd remshd exec stream tcp nowait root /usr/lbin/rexecd rexecd To disable any of these services, comment out the line by typing a pound sign (#) as the first character on the line. 2. If you made any changes to /etc/inetd.conf, type the following command to force inetd to read its configuration file. # /usr/sbin/inetd -c 61

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Configuring TCP/IP
61
1.
Change the host±s IP address in the
/etc/hosts
file.
2.
Change the
IP_ADDRESS[n]
variable in the
/etc/rc.config.d/netconf
file to the new IP address.
3.
If the host is on a network that uses BIND, change the host±s IP address in the data files of the
authoritative name servers. If the host is on a network that uses NIS, change its IP address in the
/etc/hosts
file on the NIS master server, and issue the following commands to regenerate the hosts
database and push it out to the NIS slave servers:
# cd var/yp
# /usr/ccs/bin/make hosts
4.
If the host is moving to a different subnet, change the
ROUTE_DESTINATION
,
ROUTE_GATEWAY
, and
BROADCAST_ADDRESS[n]
variables in
/etc/rc.config.d/netconf
.
If
the host is moving to a nework that uses a different subnet mask, change the
SUBNET_MASK[n]
variable in
/etc/rc.config.d/netconf
.
5.
If the host is moving to a different network, you may have to configure new routes for it.
6.
If the host is on a network that uses
gated
, change its IP address on all the
gated
routers.
7.
If the host is a
BOOTP
client, change its IP address in the
/etc/bootptab
file on the
BOOTP
server. If
the host is a
BOOTP
server, and a
BOOTP
relay agent is configured to relay boot requests to the host,
change the host±s IP address in the
/etc/bootptab
file on the
BOOTP
relay agent.
8.
If the host is an
NTP
server, change its IP address in the
/etc/ntp.conf
file on
NTP
clients. If the host
is an
NTP
client and is moving to another network, you might have to configure a different
NTP
server in its
/etc/ntp.conf
file.
9.
Reboot the host.
Configuring inetd
The
inetd
daemon is always started as part of the boot process by the startup script
/sbin/init.d/inetd
. In
addition to the
/etc/inetd.conf
configuration file, you can configure an optional security file called
/var/adm/inetd.sec
, which restricts access to the services started by
inetd
.
1.
Make sure the following lines exist in
/etc/inetd.conf
. If any of the lines starts with a pound sign (
#
),
remove it to enable the service.
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
tftp dgram udp wait root /usr/lbin/tftpd tftpd
bootps dgram udp wait root /usr/lbin/bootpd bootpd
finger stream tcp nowait bin /usr/lbin/fingerd fingerd
login stream tcp nowait root /usr/lbin/rlogind rlogind
shell stream tcp nowait root /usr/lbin/remshd remshd
exec stream tcp nowait root /usr/lbin/rexecd rexecd
To disable any of these services, comment out the line by typing a pound sign (
#
) as the
first character
on the line.
2.
If you made any changes to
/etc/inetd.conf
, type the following command to force
inetd
to read its
configuration file.
# /usr/sbin/inetd -c