[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gateway



Hi,
I have installed an openbsd server with 3 NIC's as shown below
210.212.236.97 connected to router 210.212.236.105 
210.212.236.113 connected to DMZ (210.212.236.100 -210.212.236.115)
192.168.100.254 connected to local net 192.168.100.0/24

pf disabled
gateways=YES in rc.conf
ipfowarding enabled in sysctl.conf

named started and working.

My problem is if i am using 210.212.236.105 (router i.p ) as my gateway I
can ping to outside from the server. 
But if I am using 210.212.236.97 as my gateway(connected to router) I cannot
ping out side. How can I make 210.212.236.97 as the router for my entire
network ?

What else I should add in /etc/gateways file


My rc.conf is below

#!/bin/sh -
#
#	$OpenBSD: rc.conf,v 1.84 2002/12/27 02:26:52 lebel Exp $

# set these to "NO" to turn them off.  otherwise, they're used as flags
routed_flags=NO		# for normal use: "-q"
mrouted_flags=NO	# for normal use: "", if activated
			# be sure to enable multicast_router below.
rarpd_flags=NO		# for normal use: "-a"
bootparamd_flags=NO	# for normal use: ""
rbootd_flags=NO		# for normal use: ""
sshd_flags=""		# for normal use: ""
named_flags=""		# for normal use: ""
rdate_flags=NO		# for normal use: [RFC868-host] or [-n RFC1361-host]
timed_flags=NO		# for normal use: ""
ntpdate_flags=NO	# for normal use: NTP server; run before ntpd starts
isakmpd_flags=NO	# for normal use: ""
mopd_flags=NO		# for normal use: "-a"
apmd_flags=NO		# for normal use: ""
dhcpd_flags=NO		# for normal use: "-q"
rtadvd_flags=NO		# for normal use: list of interfaces
			# be sure to set net.inet6.ip6.forwarding=1
route6d_flags=NO	# for normal use: ""
			# be sure to set net.inet6.ip6.forwarding=1
rtsold_flags=NO		# for normal use: interface
			# be sure to set net.inet6.ip6.forwarding=0
			# be sure to set net.inet6.ip6.accept_rtadv=1
lpd_flags=NO		# for normal use: "" (or "-l" for debugging)

# use -u to disable chroot, see httpd(8)
httpd_flags="-u"		# for normal use: "" (or "-DSSL" after
reading ssl(8))

# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
#sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
sendmail_flags="-L sm-mta -bd -q30m"
spamd_flags=NO		# for normal use: "" and see spamd-setup(8)
Spamd_setup=		# for normal use: -1 or other such options

# Set to NO if ftpd is running out of inetd
ftpd_flags=NO		# for non-inetd use: "-D"

# Set to NO if identd is running out of inetd
identd_flags=NO		# for non-inetd use: "-b -u nobody -elo"

# On some architectures, you must also disable console getty in /etc/ttys
xdm_flags=NO		# for normal use: ""

# For enabling console mouse support (i386 and alpha only)
wsmoused_flags=NO	# for ps/2 or usb mice: "", serial: "-p /dev/cua00"

# set the following to "YES" to turn them on
rwhod=NO
nfs_server=NO		# see sysctl.conf for nfs client configuration
lockd=NO
gated=YES
amd=NO
pf=NO			# Packet filter / NAT
portmap=YES		# Note: inetd(8) rpc services need portmap too
inetd=NO		# almost always needed
check_quotas=YES	# NO may be desirable in some YP environments
ntpd=YES		# run ntpd if it exists

krb5_master_kdc=NO	# KerberosV master KDC. Run 'info heimdal' for help.
krb5_slave_kdc=NO	# KerberosV slave KDC.
afs=NO			# mount and run afs

# Multicast routing configuration
# Please look at /etc/netstart for a detailed description if you change
these
multicast_host=NO	# Route all multicast packets to a single interface
multicast_router=NO	# A multicast routing daemon will be run, e.g.
mrouted

# miscellaneous other flags
# only used if the appropriate server is marked YES above
savecore_flags=			# "-z" to compress
gated_flags=
ypserv_flags=			# E.g. -1 for YP v1, -d for DNS etc
yppasswdd_flags=		# "-d /etc/yp" if passwd files are in
/etc/yp
nfsd_flags="-tun 4"		# Crank the 4 for a busy NFS fileserver
amd_dir=/tmp_mnt		# AMD's mount directory
amd_master=/etc/amd/master	# AMD 'master' map
syslogd_flags=			# add more flags, ie. "-u -a
/chroot/dev/log"
named_user=named		# Named should not run as root unless
necessary
named_chroot=/var/named		# Where to chroot named if not empty
pf_rules=/etc/pf.conf		# Packet filter rules file
pflogd_flags=			# add more flags, ie. "-s 256"
afs_mount_point=/afs		# Mountpoint for AFS
afs_device=/dev/xfs0		# Device used by afsd
afsd_flags=-z			# Flags passed to afsd
shlib_dirs=			# extra directories for ldconfig

local_rcconf="/etc/rc.conf.local"

[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line



santhosh




____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005



Visit your host, monkey.org