|
|||||||||||
|
i can't ping yahoo.com ?
From: Langfeust . <langfeust2001(at)hotmail.com>
Date: Fri Jan 31 2003 - 05:39:23 EST
I'm a noobs in OpenBsd, i've just started past Friday... My local network, access to the net through an Suze Linux gateway, and i to impose the local network to cross he openbsd i've just configure.
I've configured two ethernet card ont the OpenBsd, in order to split the
network.
I've configured a NAT packet translation, from one subnet to the other, it
runs correctly.
test : http://yahoo.com <- host is down
I try the ping from the openbsd directly, same results... I try without getting throught the openbsd, it works. Certainly, yahoo.com was down ? I tried both in the same time, seams that openbsd can't access to the yahoo.com host. I don't understand, what's wrong in my configuration ? Thx for your advices :) Seb PS : my configuration follow...
bsd# cat /etc/hostname.rl0
# nat on ext0 from 10.0.0.0/8 to any -> 192.168.1.1
# pass all packets in and out (these are the implicit first two rules)
#block in all
#pass in proto tcp from any to any port = 110 keep state
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q"
altqd_flags=NO # for normal use: ""
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: ""
smtpfwdd_flags=NO # for normal use: ""; be sure to configure smtpd(8)
# and sendmail(8) to use MSA only
named_flags=NO # for normal use: ""
rdate_flags=NO # for normal use: name of RFC868 timeserver
timed_flags=NO # for normal use: ""
ntpdate_flags=NO # for normal use: NTP server; run before ntpd starts
photurisd_flags=NO # for normal use: ""
isakmpd_flags=NO # for normal use: ""
mopd_flags=NO # for normal use: "-a"
httpd_flags=NO # for normal use: "" (or "-DSSL" after reading
ssl(8))
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)
# For normal use: "-L sm-mta -bd -q30m"
# Set to NO if ftpd is running out of inetd
# Set to NO if identd is running out of inetd
# On some architectures, you must also disable console getty in /etc/ttys
# For enabling console mouse support (i386 architecture only)
# set the following to "YES" to turn them on
pf=YES # Packet filter / NAT portmap=YES # almost always needed inetd=YES # almost always needed check_quotas=YES # NO may be desirable in some YP environments ntpd=YES # run ntpd if it exists krb4_server_kdc=NO # kerberos server. run 'info kth-krb' for assistance. krb4_slave_kdc=NO # kerberos slave server. 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
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
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 nat_rules=/etc/nat.conf # NAT 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
bsd# pfctl -F nat
bsd# pfctl -N /etc/nat.conf bsd# pfctl -R /etc/pf.conf bsd# sh /etc/netstart writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists writing to routing socket: File exists add net default: gateway 192.168.1.254: File exists writing to routing socket: File exists bsd# ping yahoo.fr PING yahoo.fr (217.12.3.11): 56 data bytes 64 bytes from 217.12.3.11: icmp_seq=0 ttl=242 time=587.771 ms 64 bytes from 217.12.3.11: icmp_seq=1 ttl=242 time=587.175 ms 64 bytes from 217.12.3.11: icmp_seq=2 ttl=242 time=588.169 ms--- yahoo.fr ping statistics --- 4 packets transmitted, 3 packets received, 25% packet loss round-trip min/avg/max/std-dev = 587.175/587.705/588.169/0.408 ms bsd# ping yahoo.com PING yahoo.com (66.218.71.198): 56 data bytes ping: sendto: Host is down ping: wrote yahoo.com 64 chars, ret=-1 --- yahoo.com ping statistics --- 7 packets transmitted, 0 packets received, 100% packet loss bsd# cat /etc/mygate 192.168.1.254 bsd# cat /etc/resolv.conf search idems.fr
nameserver 193.252.19.3
Non-authoritative answer:
bsd# MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp Received on Fri Jan 31 11:47:26 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:32:40 EDT |
||||||||||
|
|||||||||||