Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 May 2003 03:23:24 +0200
From:      "Ronald Weinrich" <freebsd@werosoft.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: no route to host
Message-ID:  <3EB87C2C.16955.73F15B3@localhost>
In-Reply-To: <20030506180518.A20874@ns.museum.rain.com>
References:  <3EB85E97.29721.6CB887E@localhost>; from freebsd@werosoft.com on Wed, May 07, 2003 at 01:17:11AM %2B0200

next in thread | previous in thread | raw e-mail | index | archive | help
hi James,
thank you for answering, I just post my problem to DJ Boris but may be I make some 
mistak because I did'nt get my mess from majordomo hier again, 
tia
Ron

my system looks like:

INTERNET
--------- ip xx.xx.xx.xx 
    |
    |
--------- ip xx.xx.xx.xx 
MY ROUTER
--------- 213.47.28.161 is gw for ..162 and 163
    |
    |
     --------www dns1   xx.xx.xx.162
    |
     --------dns2 xx.xx.xx.163
    |
    |
--------- ed0 xx.xx.xx.166

 freebsd-box 
 ipnat should run here  :)
 (ipfilter) later may be ;)

--------- ep0 192.168.0.1  gw for intra 192.168.0.xx
    |
    |
--------- 
winxx ip 192.168.0.xx   gw 192.168.0.1  subn 255.255.255.0  

I build the kernel with
options IPFILTER
options IPFILTER_LOG
options IPFILTER_DEFAULT_BLOCK

in rc.conf is
hostname="firewall"
defaultrouter="213.47.28.161"  ??????
gateway_enable="YES"
ipnat_enable="YES"
ifconfig_ed0="inet 213.47.28.166  netmask 255.255.255.240"
kern_securelevel_enable="NO"
linux_enable="NO"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"

in /usr/local/etc/rc.d/ipnat.sh
--------------------------------
#!/bin/sh
/sbin/ifconfig ep0 down
/sbin/ifconfig ep0 inet 192.168.0.1 netmask 0xffffff00 broadcast 
192.168.5.255
/sbin/ifconfig ep0 up
[ -x /sbin/ipnat ] && /sbin/ipnat -CF -f /etc/ipnat.conf && ipf -
y && echo -n 'ipnat'

in etc/ipnat.conf
-------------------
map ep0  192.168.0.0/24 -> 213.47.28.160/32 portmap tcp/udp 
10000:60000
ep0 192.168.0.0/24 -> 213.47.28.160/32

ipnat.rules is empty  ?
 

> On Wed, May 07, 2003 at 01:17:11AM +0200, Ronald Weinrich wrote:
> > Hi All,
> > can anyone help me please what that mean if I ping one of my 
> > interface and get  "no route to host "
> 
> In general, it means you need to post the output of
> 
> ifconfig -a
> 
> and
> 
> netstat -rn
> 
> and then tell us which IP address you were trying to ping.
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EB87C2C.16955.73F15B3>