no route to host

Ronald Weinrich freebsd at werosoft.com
Tue May 6 18:21:21 PDT 2003


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.
> 
> 




More information about the freebsd-questions mailing list