Results 1 to 2 of 2

Thread: Configuring dhcpd.conf with two LAN-cards?

  1. #1
    Join Date
    2014-Jun
    Location
    @Home
    Posts
    2

    Question Configuring dhcpd.conf with two LAN-cards?

    So Here is my problem:

    I have two LAN cards in my Kali 1.0.7 machine.
    eth1 is connected to my home network (connected to internet via ISP router (192.168.0.1))
    eth0 is connected to wireless router (Buffalo AirStation WLA-G54C (192.168.11.1))

    I cant connect to internet with my laptop using wireless thru Kali machine that is serving dhcpd to eth0
    The point is to be the man in the middle when my nasty neighbours uses my open wlan.

    With my laptop i can ping that airstation and my kali machine (192.168.11.10) but it seems that all traffic stops there.

    ifconfig

    Code:
    #
    eth0      Link encap:Ethernet  HWaddr 00:10:a7:0e:dc:2a  
              inet addr:192.168.11.10  Bcast:192.168.11.255  Mask:255.255.255.0
              inet6 addr: fe80::210:a7ff:fe0e:dc2a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:141 errors:0 dropped:11 overruns:0 frame:0
              TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:12144 (11.8 KiB)  TX bytes:1718 (1.6 KiB)
    
    eth1      Link encap:Ethernet  HWaddr 00:22:64:27:b8:f7  
              inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::222:64ff:fe27:b8f7/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:66700 errors:0 dropped:0 overruns:0 frame:0
              TX packets:27531 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:29035334 (27.6 MiB)  TX bytes:4004954 (3.8 MiB)
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:1404 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1404 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:84200 (82.2 KiB)  TX bytes:84200 (82.2 KiB)
    dhcpd.conf

    Code:
    ddns-update-style interim;
    default-lease-time 6000;
    max-lease-time 72000;
    authoritative;
    subnet 192.168.11.0 netmask 255.255.255.0 {
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.11.255;
    option routers 192.168.11.1;
    option domain-name-servers 8.8.8.8;
    range 192.168.11.0 192.168.11.200;
    }
    I have tried to Google it and search this forum, but no luck. I am getting confused with all the different information i've found.

    I'm kinda newbie with linux, but i am trying my best to learn. Please tell me what i'm doing wrong.

  2. #2
    Join Date
    2014-Jun
    Location
    @Home
    Posts
    2
    I got this problem solved using dnsmasq and setting up iptables.

Similar Threads

  1. Replies: 0
    Last Post: 2022-01-20, 00:57
  2. Setup WiFi with Internet Access: dhcpd service failed
    By krats in forum General Archive
    Replies: 4
    Last Post: 2017-11-19, 18:11
  3. Configuring xorg.conf for nvidia drivers
    By xNotta in forum General Archive
    Replies: 13
    Last Post: 2013-07-27, 09:18

Tags for this Thread

Posting Permissions

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