All pastes #815949 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-12-14 14:51 UTC
rendered paste body
root@coxudo:/home/coxudo# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

ifconfig eth1 192.168.0.1 netmask 255.255.255.0
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

# NO WINDOWS CONFIGURE
# IP 192.168.0.2 NETMASK 255.255.255.0
# GATEWAY 192.168.0.1
# DNS 200.176.2.10