Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: dhcp3 issue with airbase-ng

  1. #11
    Very good friend of the forum TAPE's Avatar
    Join Date
    Jan 2010
    Location
    Europe
    Posts
    599

    Default

    Nick & Gitsnik, thank you very much for your excellent comments and help !

    I finally have it working.. thankfully, it was driving me nuts.. ;

    >using a netbook with back|track 4 pre final
    >wifi dongle WUSB54GC on netbook having internet access on wlan1

    Created/configured the dhcpd.conf file as required and mentioned hereabove in Nick's post.

    Then created tap interface
    Code:
     
    airmon-ng start wlan0
    airbase-ng -e "TEST_AP" -c 9 mon0
    Brought the tap interface up and assigned the necessary following Nick's post;

    Code:
    ifconfig at0 up
    ifconfig at0 192.168.2.129 netmask 255.255.255.128
    route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129

    Followed Gitsnik's suggestion on the dhcp using the alternative file and alternative pid ;
    Code:
    mkdir -p /var/run/dhcpd && chown dhcpd:dhcpd /var/run/dhcpd
    Code:
    dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcpd/dhcpd.pid at0
    Ran the iptables as advised ;
    Code:
    iptables --flush
    iptables --table nat --flush
    iptables --delete-chain
    iptables --table nat --delete-chain
    echo 1 > /proc/sys/net/ipv4/ip_forward
    iptables --table nat --append POSTROUTING --out-interface wlan1 -j MASQUERADE
    iptables --append FORWARD --in-interface at0 -j ACCEPT
    iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to 192.168.1.1
    192.168.1.1 being my actual internet gateway.


    And SUCCESS !

    Was able to connect, get IP and surf around happily. DL speed not too brilliant at approx 65 KB/s however this expected and all good.

    Thanks again guys for the assistance, all greatly appreciated !

  2. #12
    Senior Member Nick_the_Greek's Avatar
    Join Date
    Jan 2010
    Location
    Greece
    Posts
    181

    Default Well done !

    Quote Originally Posted by =TAPE= View Post
    Nick & Gitsnik, thank you very much for your excellent comments and help !
    You should pronounce us Gitsnik & Nick. I am very "small" in front of Gitsnik.

    Glad to hear you got it working.

    Since I am using the same network address in my scripts, dhcpd.conf and iptable rules, you can download my script "how to: E-Z setup..." and look at the end of it. You will see how I handle traffic in several "modes" into BT4 box. You may found some useful informations there and do some advanced tricks in the future.

    Well done.

    Nick

  3. #13
    Very good friend of the forum TAPE's Avatar
    Join Date
    Jan 2010
    Location
    Europe
    Posts
    599

    Default

    I will definately keep looking at your script and look forward to see it developing as well !

    When you get it fine-tuned it is going to be awesome indeed !

    Thanks again for your help Nick, and dont worry, think most of us here are kinda "small" in front of Gitsnik

  4. #14
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    Quote Originally Posted by Nick_the_Greek View Post
    You should pronounce us Gitsnik & Nick. I am very "small" in front of Gitsnik.
    The provision of a simple, practical example in the face of my sometimes over-the-top theoretical comments is not to be discounted so easily!

    Well done =TAPE=! Look forward to reading a blog post on the topic!
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

  5. #15
    Senior Member Nick_the_Greek's Avatar
    Join Date
    Jan 2010
    Location
    Greece
    Posts
    181

    Default

    Quote Originally Posted by Gitsnik View Post
    The provision of a simple, practical example in the face of my sometimes over-the-top theoretical comments is not to be discounted so easily!
    Come on Gitsnik, don't be so modest.

    I was speaking for myself and I know that you know more things than me. There is no "over-the-top theoretical comments"

    Maybe you don't know also that until today you are the only one how spend some time to respond to my BT4 related posts and I am thankful for this.

    Let me make one compliment. I show some respect to your knowledge level.

    Nick.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •