View Single Post
  #2   (View Single Post)  
Old 20th May 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

How about adding the missing route?

Code:
$ sudo route delete 224/4
delete net 224/4

$ sudo route add 224/4 192.168.2.1
add net 224/4: gateway 192.168.2.1

$ netstat -rn -f inet

Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            192.168.222.10     UGS        7    10755     -     8 re0  
127/8              127.0.0.1          UGRS       0        0 33152     8 lo0  
127.0.0.1          127.0.0.1          UH         2        0 33152     4 lo0  
127.0.0.10         127.0.0.10         UH         0        0 33152     4 lo1  
192.168.2.1        192.168.2.1        UH         1        0 33152     4 lo2  
192.168.222/24     link#1             UC         2        0     -     4 re0  
192.168.222.10     00:10:5a:14:52:a5  UHLc       1     1163     -     4 re0  
192.168.222.20     127.0.0.1          UG         0        0 33152    56 lo0  
192.168.222.200    link#1             UHLc       1        3     -     4 re0  
224/4              192.168.2.1        UGS        0        0 33152     8 lo2
Please note that because of having only one NIC I had to create an lo2 interface with your example address:

Code:
$ sudo ifconfig lo2 create 

$ sudo ifconfig lo2 192.168.2.1

$ ifconfig lo2
lo2: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33152
        priority: 0
        groups: lo
        inet6 fe80::1%lo2 prefixlen 64 scopeid 0x6
        inet 192.168.2.1 netmask 0xffffff00
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote