I have successfully created a DHCP server, which assigns an IP to its
client. My ping results from client to server (ping server) work
perfect, whereas when i ping frm server (ping node1) it says "unknown
host", but when i ping with the IP assigned to the client i get the
result.
Now i wish to share my net connections, att r the listings of my files.
Pls let me know where i m doing wrong.
My netcfg shows:
Names
-----
Hostnames=server.myindia.com
Domain = myindia.com
Nameservers = 202.54.1.30
202.54.1.116
Hosts
-----
IP Name NickNames
127.0.0.1 localhost.localdomain localhost
192.168.0.1 server.myindia.com server
Interfaces
----------
lo 127.0.0.1 none yes active
eth0 192.168.0.1 none yes active
ppp0 none no inactive
NETWORKING=yes
HOSTNAME=server1.myindia.com
GATEWAY=
GATEWAYDEV=
FORWARD_IPV4=yes
#!/bin/sh
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
/sbin/ipchains -F
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 255.255.255.255
255.255.255.0
192.168.0.0/255.255.255.0 -j MASQ
/sbin/ipchains -L
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
if [ -f /etc/redhat-release ]; then
R=$(cat /etc/redhat-release)
arch=$(uname -m)
a="a"
case "_$arch" in
_a*) a="an";;
_i*) a="an";;
esac
NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
if [ "$NUMPROC" -gt "1" ]; then
SMP="$NUMPROC-processor "
if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
a="an"
else
a="a"
fi
fi
# This will overwrite /etc/issue at every boot. So, make any
changes you
# want to make to /etc/issue here or you will lose them when you
reboot.
echo "" > /etc/issue
echo "$R" >> /etc/issue
echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue
cp -f /etc/issue /etc/issue.net
echo >> /etc/issue
fi
/sbin/route add -host 255.255.255.0 dev eth0
/sbin/modprobe ip_masq_autofw
/sbin/modprobe ip_masq_cuseeme
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_mfw
/sbin/modprobe ip_masq_portfw
/sbin/modprobe ip_masq_quake
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_user
/sbin/modprobe ip_masq_vdolive
/etc/rc.d/rc.fw
search myindia.com
nameserver 202.54.1.30
nameserver 202.54.4.116
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
----------------------------------------------------------------------
An alpha version of a web based tool to manage your
subscriptions with this majordomo2 server is available
at http://lists.linux-india.org/cgi-bin/mj_wwwusr