Packet forwarding

Khozaima Shakir skhozaima at yahoo.com
Thu Oct 11 07:34:42 PDT 2007


Hello All, 

I am new to ipfw. Basically, on my box, i have 3 nics, 1 for external Internet usage and 2 for internal lan usage : re0, re1. I want to sent ip traffic to re0, pass it on to ipfw to apply QoS on IP stream and route it through re1 (and viceversa). I don;t need to have any external IP traffic on re0 and re1. I tried bridging re0 and re1 which for some unknown reason, only worked for 1 ip flow, pipe if you will. Thinking, there might be some bridging L2 and ip L3 issues, I am thinking for turning the box into a router, just to forward packets between re0 and re1 and then apply QoS on it. I am using fixed internal IP addresses on re0 and re1. I have turned on ip forwarding. 

re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=18<VLAN_MTU,VLAN_HWTAGGING>
        inet 20.20.20.20 netmask 0xffffff00 broadcast 20.20.20.255
        ether 00:12:17:55:a4:ec
        media: Ethernet autoselect (none)
        status: no carrier
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=18<VLAN_MTU,VLAN_HWTAGGING>
        inet 20.20.20.22 netmask 0xffffff00 broadcast 20.20.20.255
        ether 00:12:17:55:a3:fa
        media: Ethernet autoselect (none)
        status: no carrier

I am don;t understand on how to proceed with set of rules I should be using to forward ip traffic. Once I have a basic setup that can forward ip, i can then think of rule set for QoS via pipe and queues. system I will have at least 2 streams of IP traffic via a switch to the freeBSD box. Any help would be greatly appreciated. 

Thanks in advance, 
khozaima




       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  


More information about the freebsd-ipfw mailing list