LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to set up routing on BackTrack 5r3? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-set-up-routing-on-backtrack-5r3-4175458303/)

aburmot 04-16-2013 07:03 AM

How to set up routing on BackTrack 5r3?
 
I have configured routing on BackTrack 5r3 (it's a kind of Ubuntu). But it doesn't work.

To set up router I made following steps:
1. Clean install BT5r3 from its Live CD.
2. Configured eth0 statically as 172.16.3.3/16 and eth1 by DHCP (leased 10.0.2.15/24, gw 10.0.2.2). Everything is up and running. Checked by ifconfig, route, and ping.
3. Set net.ipv4.ip_forward=1. Checked by sysctl, and cat /proc/... .
4. Checked iptables - everything is in ACCEPT policy, and no other rules.

After all traffic is not forwarded - host in 172.16.0.0 configured to have 172.16.3.3 as default gateway, and ping 10.0.2.2 comes to the router but not forwarded. Traffic checked with wireshark on both interfaces of the router.

Maybe I missed something well-known?

aburmot 04-17-2013 05:57 AM

I think I found roots of this issue. I didn't mentioned that BT5 runs on an VirtualBox. Never thought it matters... VM uses bridged interface. After continuous sniffing I recognize that destination MAC-addresses of packets to be routed differs from router's MAC. It seems like VirtualBox changes MAC of VM NIC in outgoing packets (including ARP) to MAC of host NIC.

I believe I set up routing just fine. :)


All times are GMT -5. The time now is 09:26 AM.