Results 1 to 7 of 7

Thread: How to test Nat-router in backtrack 5?

  1. #1
    Join Date
    May 2011
    Posts
    220

    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

  2. #2
    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.

  3. #3
    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!

  4. #4
    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.

  5. #5
    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

  6. #6
    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

  7. #7
    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

Similar Threads

  1. Acid3 Test and HTML5 Test on LG Nitro HD
    By Dragonball Z in forum Portable Devices
    Replies: 6
    Last Post: 23-12-2011, 12:54 PM
  2. Replies: 5
    Last Post: 27-08-2011, 07:45 AM
  3. How to upgrade from Backtrack 4 to Backtrack 5
    By Upendra in forum Operating Systems
    Replies: 6
    Last Post: 09-07-2011, 08:52 PM
  4. Speed test shows 25Mbps Without Router and 14Mbps with Router
    By Lilija in forum Networking & Security
    Replies: 4
    Last Post: 03-12-2010, 08:37 AM
  5. Replies: 6
    Last Post: 20-06-2006, 07:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,727,444.84925 seconds with 17 queries