LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-16-2013, 07:03 AM   #1
aburmot
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 04-17-2013, 05:57 AM   #2
aburmot
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backtrack 5r3 fatal error LinuxUSx Linux - Newbie 1 03-16-2013 07:05 AM
Backtrack 5r3 fatal error LinuxUSx Linux - Newbie 2 03-13-2013 07:16 AM
backtrack 5r3 in thosiba c640d can_cworld Ubuntu 2 02-11-2013 09:56 AM
backtrack 5r3 in thosiba c640d can_cworld Linux - Laptop and Netbook 1 02-11-2013 08:58 AM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration