Memo/Linux/SC420
外部公開(DMZ) †
設定 †
[example@localhost ~]$ su -
Password:
[root@localhost ~]#
[example@localhost ~]$ vi /etc/hosts.deny
------------------------------------------
ALL: ALL
------------------------------------------
[root@localhost ~]# vi /etc/hosts.allow
------------------------------------------
ALL: 192.168.0.0/255.255.0.0 # example LAN
------------------------------------------
[root@localhost ~]# vi /etc/resolv.conf
------------------------------------------
search example.com
nameserver 192.168.1.1
------------------------------------------
[root@localhost ~]# vi /etc/sysconfig/network
NETWORKING=yes
GATEWAY="192.168.1.1"
HOSTNAME=localhost.localdomain
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="none"
IPADDR="192.168.1.9"
NETMASK="255.255.255.0"
[root@localhost ~]# service network restart