• Home
  • Hacking & Security
    • Network Hacking
    • Web Hacking
    • Social Engineering
    • Kali Linux
    Submit An Article
  • Courses
    • All Courses
    • Bundles
    • Masterclass
    • VIP Membership
    • FAQ

    Popular Courses

  • Shop
    • Hardware Bundles
    • Wireless Adapters
    • Pentesting Tools
    • Security
    • Accessories
    • Clothing
    • Books
    • All
  • Competition
  • Services
    Penetration Testing
    Consulting
    Code Review
    One on one Training
    Online Courses
    VPN
      • Cart

    VIP Membership Masterclass
    Got a question?
    [email protected]
    RegisterLogin
    zSecurity
    • Home
    • Hacking & Security
      • Network Hacking
      • Web Hacking
      • Social Engineering
      • Kali Linux
      Submit An Article
    • Courses
      • All Courses
      • Bundles
      • Masterclass
      • VIP Membership
      • FAQ

      Popular Courses

    • Shop
      • Hardware Bundles
      • Wireless Adapters
      • Pentesting Tools
      • Security
      • Accessories
      • Clothing
      • Books
      • All
    • Competition
    • Services
      Penetration Testing
      Consulting
      Code Review
      One on one Training
      Online Courses
      VPN
        • Cart

      Reply To: Unable to redirect using dnsmasq

      May 14, 2018 at 7:00 pm #11744
      Atul Koshta
      Participant

      Hi Zaid sir,
      I have tried every possible ways including what you have told above but still i am unlucky.Here are steps that i followed:
      #Machine started>adapter is plugged in>service network-manager stop>bash ‘flushiptables.sh script path’ >ifconfig .Result is shown below:

      eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
      inet6 fe80::a00:27ff:fe59:1b51 prefixlen 64 scopeid 0x20<link>
      ether 08:00:27:59:1b:51 txqueuelen 1000 (Ethernet)
      RX packets 11651 bytes 16658111 (15.8 MiB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 3310 bytes 233662 (228.1 KiB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
      inet 127.0.0.1 netmask 255.0.0.0
      inet6 ::1 prefixlen 128 scopeid 0x10<host>
      loop txqueuelen 1000 (Local Loopback)
      RX packets 26 bytes 1350 (1.3 KiB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 26 bytes 1350 (1.3 KiB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      2> I used following conf file n my recent try which was 24 hours ago:
      #dnsmasq.conf
      interface=wlan0
      dhcp-range=192.168.1.2,192.168.1.100,8h
      dhcp-option=3,192.168.1.1
      dhcp-option=6,192.168.1.1
      address=/#/192.168.1.1

      #hostapd.conf
      interface=wlan0
      ssid=Stark Industry
      channel=5
      driver=nl80211

      [email protected]:~# dnsmasq -C Downloads/dnsmasq.conf
      [email protected]:~# hostapd Downloads/hostapd.conf
      [email protected]:~# ifconfig wlan0 192.168.1.1 netmask 255.255.255.0
      [email protected]:~# service apache2 start

      #ifconfig now seem like this:
      eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
      inet6 fe80::a00:27ff:fe59:1b51 prefixlen 64 scopeid 0x20<link>
      ether 08:00:27:59:1b:51 txqueuelen 1000 (Ethernet)
      RX packets 49597 bytes 71848691 (68.5 MiB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 12782 bytes 802876 (784.0 KiB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
      inet 127.0.0.1 netmask 255.0.0.0
      inet6 ::1 prefixlen 128 scopeid 0x10<host>
      loop txqueuelen 1000 (Local Loopback)
      RX packets 26 bytes 1350 (1.3 KiB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 26 bytes 1350 (1.3 KiB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
      inet6 fe80::2c0:caff:fe96:64e9 prefixlen 64 scopeid 0x20<link>
      ether 00:c0:ca:96:64:e9 txqueuelen 1000 (Ethernet)
      RX packets 1324 bytes 142681 (139.3 KiB)
      RX errors 0 dropped 2 overruns 0 frame 0
      TX packets 1228 bytes 115622 (112.9 KiB)
      TX errors 0 dropped 2 overruns 0 carrier 0 collisions 0

      #AP is now enabled and devices can connect to it.Moreover they can browse to my server’s index.php,explicitly by typing 192.168.1.1 in url and not automatically upon browsing anything in the browser’s url.

      Categories

      • Bug Bounty
      • Cryptography
      • Cryptography
      • CTF
      • Forensics
      • Hacking & Security
      • Hardware
      • IOT
      • Kali Linux
      • Network Hacking
      • News
      • OSINT
      • Post Exploitation
      • Post Exploitation
      • Privacy
      • Programming
      • Security
      • Social Engineering
      • Uncategorized
      • Web Hacking

      Popular Posts

      Got a Blank Screen After Importing Kali in Virtual Box ? Here’s How To Fix It
      25Jan2018

      Connect with us

      • Facebook
      • Twitter
      • LinkedIn
      • Instagram
      • Youtube

      “Everything related to ethical hacking

      & cyber security in one place.”

      Quick Links

      • Home
      • About Us
      • Hacking & Security
      • Download Custom Kali
      • Contact
      • FAQ

      Services

      • Penetration Testing
      • Consulting
      • Code Review
      • One on one training
      • VPN
      • VIP Membership

      Company

      • About Us
      • Blog
      • Contact
      • Vulnerability Disclosure

      Support

      • FAQ
      • Forums

      Copyright © 2022 Z IT SECURITY LTD t/a zSecurity. All rights reserved.

      • Privacy
      • Shipping
      • Refunds
      • Terms

      Contribute

      Share your knowledge with the world

      SUBMIT AN ARTICLE

      Login with your site account

      Lost your password?

      Not a member yet? Register now

      Register a new account


      Are you a member? Login now

      Enroll in this course to access this lesson!

      All of our courses include:

      ✔ Lifetime, unlimited access to course materials & training videos.

      ✔ Watch online or download lectures for offline use.

      ✔ Verifiable certificate of completion from zSecurity, signed by the course instructor, Zaid.

      ✔ Get answers from our Support Team within a maximum of 15 hours.

      ✔ Unlimited Updates.

      Get free 1 month VIP membership per course with:

      ✔ Live mentorship and Q&A session with the course instructor, Zaid.

      ✔ Instant support from community members through our private discord channel.

      ✔ Daily updates with the latest tutorials & news in the hacking world.

      ✔ Daily resources like CTFs, bug bounty programs, onion services and more!

      ✔ Access our VIP community & connect with like-minded people.

      ✔ Discounts on other zSecurity products and services.

      We are using cookies to give you the best experience on our website. This includes but is not limited to:

      • Storing your settings and preferences.
      • Remember your access information
      • Track website performance and make our website more relevant to you.

      You can find out more about which cookies we are using or switch them off in settings.

      Privacy Overview

      This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

      Strictly Necessary Cookies

      Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

      3rd Party Cookies

      This website uses Google Analytics and Linkedin to collect anonymous information such as the number of visitors to the site, and the most popular pages.

      Keeping this cookies enabled helps us to improve our website.

      Please enable Strictly Necessary Cookies first so that we can save your preferences!

      Powered by  GDPR Cookie Compliance