JAGUILLERA
(usa Slackware)
Enviado em 07/10/2009 - 15:03h
Renato, deu BAD ARGUMENT POSTROUTING
root@Aguillera:~# sh /etc/rc.d/rc.local
Bad argument `POSTROUTING'
Try `iptables -h' or 'iptables --help' for more information.
Internet Systems Consortium DHCP Server V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
Wrote 0 leases to leases file.
Listening on LPF/eth1/00:13:d4:36:d5:a7/192.168.0/24
Sending on LPF/eth1/00:13:d4:36:d5:a7/192.168.0/24
Sending on Socket/fallback/fallback-net
There's already a DHCP server running.
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
root@Aguillera:~#
O meu rc.local ta assim:
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat POSTROUTING -o eth0 -j MASQUERADE
dhcpd eth1