# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000 inet 134.75.xxx.yyy netmask 255.255.255.0 broadcast 134.75.xxx.255 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000 inet 192.168.4.1 netmask 255.255.255.0 broadcast 192.168.4.255 |
yum -y install dnsmasq |
net.ipv4.ip_forward = 1 |
interface=eth1 except-interface=lo,eth0 bind-interfaces listen-address=127.0.0.1 listen-address=192.168.4.1 #domain-needed bogus-priv #no-resolv resolv-file=/etc/resolv.conf #filterwin2k expand-hosts domain=local local=/local/ #domain= #local= dhcp-option=option:netmask,255.255.255.0 dhcp-option=option:router,192.168.4.1 dhcp-option=option:dns-server,192.168.4.1 dhcp-option=option:ntp-server,141.223.182.106 # ntp.postech.ac.kr dhcp-range=192.168.4.194,192.168.4.253,5m dhcp-lease-max=252 dhcp-leasefile=/var/lib/dnsmasq/local.leases |
Before | After | |||
---|---|---|---|---|
|
|
<?xml version="1.0" encoding="utf-8"?> <zone> <short>Internal</short> <interface name="eth1"/> <service name="ssh"/> <service name="dns"/> <service name="dhcp"/> </zone> |
<?xml version="1.0" encoding="utf-8"?> <zone> <short>Public</short> <interface name="eth0"/> <service name="ssh"/> <masquerade/> <forward/> </zone> |