LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-27-2014, 01:46 PM   #16
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian, Red Hat
Posts: 53

Rep: Reputation: Disabled

Hello,
I`ll post a output from my dhcp-server, maybe it will work for you to.

Code:
ddns-update-style none;
        subnet 192.168.50.0 netmask 255.255.255.0 {
                option domain-name              "you`re-domain";
                option domain-name-servers      8.8.8.8, 8.8.4.4;
#               option domain-name-servers      192.168.50.1;
                option routers                  192.168.50.1;
                option subnet-mask              255.255.255.0;
                option time-offset              -18000;     # Eastern Standard Time
#               range 192.168.50.2 192.168.50.253;
                default-lease-time 600;
                max-lease-time 7200;
                authoritative; }
 
Old 05-28-2014, 02:04 AM   #17
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The machines definately show that they are connected but even after forwarding from wlan0 to eth0 I still can't get to outside network(internet).
I can however ping back & forth the 2 computers though.
 
Old 05-28-2014, 03:48 AM   #18
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian, Red Hat
Posts: 53

Rep: Reputation: Disabled
Try with this:
Code:
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE
You also need to modify the /etc/sysctl.conf line:
Code:
net.ipv4.ip_forward = 0
to
Code:
net.ipv4.ip_forward = 1
After this type the command:
Code:
sysctl -p /etc/sysctl.conf
 
Old 05-28-2014, 10:31 AM   #19
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I just checked /etc/resolv.conf & all it's saying is:

domain examples.org
search examples.org
nameserver 127.0.1.1
 
Old 05-29-2014, 12:48 AM   #20
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian, Red Hat
Posts: 53

Rep: Reputation: Disabled
It lookes like, that you don`t have the settings in rezolv.conf with the DNS servers.
You can try to set them manualy, and test after, to see if it works.
The machine where is the /etc/resolv.conf with the configuration above, is a different PC from DHCP server?
Did you`ve set the option domain-name-servers in you`re dhcp server with you`re provider`s DNS servers?
Did you`ve set the DNS servers on the interface that is running the DHCP server?
 
Old 05-29-2014, 01:08 AM   #21
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
After noticing that I opened the dhcpd.conf & noticed the entries for example.org were uncommented so I commented them out & tried different entries with no results. I will post all relevant .conf files shortly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bad subnet number/mask combination. Jan Tanjo Linux - Server 3 01-27-2013 09:20 PM
DHCP:bad subnet/mask combination mahdit Linux - Networking 2 01-07-2010 11:02 AM
DHCP: Bad subnet number/mask combination OliXNet Linux - Networking 4 01-07-2010 10:17 AM
dhcp - bad subnet/mask combination ecunningham Linux - Server 2 03-19-2009 08:19 AM
dhcpd server problem: bad subnet number/mask combination 144419855310001 Linux - Networking 2 09-13-2007 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration