Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to test Nat-router in backtrack 5?

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 08-07-2011
Member
 
Join Date: May 2011
Posts: 217
How to test Nat-router in backtrack 5?
  

I?m doing test for nat-router in backtrack 5.From Backtrack 5, it?s likely to ping the access point and the inner machine. - But the inner device unable to ping to outside world
Code:
AP/Router: 192.168.0.1
BT/WLAN0: 192.168.0.100
BT/eht0: 192.168.1.5
internal machine: 192.168.1.99
Settings on BT:
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -s 192.168.1.0/255.255.255.0 -o wlan0 -j SNAT --to-source 192.168.0.100

Reply With Quote
  #2  
Old 08-07-2011
Member
 
Join Date: May 2008
Posts: 991
Re: How to test Nat-router in backtrack 5?

Looking at above scenario I think your using real system. And Backtrack should be router of your system. After loading the module iptable_nat it's fully operational :-) not including the machine behind the backtrack router needs to define the access point (access point/Router: 192.168.0.1) as their name server. If the IP of the internal network (BT/eth0: 192.168.1.5) is defined, name declaration does not work.
Reply With Quote
  #3  
Old 08-07-2011
Member
 
Join Date: May 2008
Posts: 1,020
Re: How to test Nat-router in backtrack 5?

Astonishingly that "new" iptables authority does not create any differentiation. Backtrack workings as NAT-router, other than there is a very particular things can't understand at all: Name resolution (DNS) (e.g. google.com) does not labor on the internal machine (192.168.1.99) if the NAT-router (Backtrack) is defined as name server (the IP address have to be definite).other than the whole thing (DNS-resolution) works completely it the WLAN Access Point (192.168.0.1) is defined as the name server!
Reply With Quote
  #4  
Old 08-07-2011
Member
 
Join Date: Nov 2009
Posts: 824
Re: How to test Nat-router in backtrack 5?

Immediately for the reason that your backtrack machine is complex as a NAT router does not stand for it will do something as a DNS server. If you would like to be capable in the direction to locate the clients to make use of it you would could accomplish with to run a DNS server on the backtrack machine. As far as I be acquainted with there isn't a DNS server builds into backtrack but I would not be surprised at all if I was extensive of the mark.
Reply With Quote
  #5  
Old 08-07-2011
Member
 
Join Date: Apr 2010
Posts: 57
Re: How to test Nat-router in backtrack 5?

Thanks? a lot Dude for the appealing feedback! at the same time as I appreciate you, in attendance is at the moment is other way than to locate up a DNS server on the NAT router within order inside the direction of have the DNS resolution fully operational designed for the clients in the 192.168.1.0 net. I hoped with the intention of this could be achieved at the same time as well in the midst of the iptables command
Reply With Quote
  #6  
Old 08-07-2011
Member
 
Join Date: Apr 2010
Posts: 173
Re: How to test Nat-router in backtrack 5?

If the clients on the 192.168.1.0 network make use of internet DNS server that would also operational. Maybe there is a way to forward all DNS needs to an internet DNS server using iptables but you would require to do a small investigate. Here are some community DNS servers they could use server list.
Code:
Iptables -t nat -I PREROUTING -i eth0 -p udp --dport 53 -j DNAT --to 4.2.2.2
Reply With Quote
  #7  
Old 08-07-2011
Member
 
Join Date: Apr 2010
Posts: 62
Re: How to test Nat-router in backtrack 5?

Thanks? a lot for the help! Unfortunately the command
Code:
# Iptables -t nat -I PREROUTING -i eth0 -p udp --dport 53 -j DNAT --to 192.168.0.100.
Above command does not solve the DNS problem, instead the clients in the 192.168.1.0 net are not even able to ping the WLAN AP at 192.168.0.1anymore
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to test Nat-router in backtrack 5?"
Thread Thread Starter Forum Replies Last Post
Acid3 Test and HTML5 Test on LG Nitro HD Dragonball Z Portable Devices 6 23-12-2011 12:54 PM
Seagate Device ST3250410AS Failed Long Test but passed Short Test Bryant Hardware Peripherals 5 27-08-2011 07:45 AM
How to upgrade from Backtrack 4 to Backtrack 5 Upendra Operating Systems 6 09-07-2011 08:52 PM
Speed test shows 25Mbps Without Router and 14Mbps with Router Lilija Networking & Security 4 03-12-2010 08:37 AM
DNS test fails with dcdiag /test:dns - TEST: Forwarders/Root hints (Forw) MartinH Windows Server Help 6 20-06-2006 07:20 PM


All times are GMT +5.5. The time now is 01:54 AM.