Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to setup linux firewall/dhcp server but its not assign ips

Status
Not open for further replies.

john99999

Instructor
Apr 29, 2005
73
US
I am trying to setup linux firewall/dhcp server but its not assign ips

Here is my server
Firewall/DHCP Server with 2 NICS
NIC 1 eth0: Cable from dsl router to nic1. Public IP from my dsl provider, this works ok and I can ping out
NIC 2 eth1: Cable From switch to nic2 Private IP 10.10.0.1, I can ping 10.10.0.1 ok

Computer 1:
cable from switch to nic on computer.

I have dhcpd.conf set to us 10.10.0.128-254 for ips and to use 10.10.0.1 as the gateway.

Computer 1 is set to automatically assign an ip to itself, it picks
IP: 10.10.0.254
Subnet: 255.255.255.0
Gateway: 10.10.0.1
It can ping 10.10.0.1 and it can ping the public IP, but it cannont ping yahoo.com

I tried changing the IP of eth1 on the server to 10.10.0.11 and computer 1 can ping it put it can't ping the default gateway of 10.10.0.1

Should the IP of NIC1 on the server be 10.10.0.1 or 10.10.0.11?

I also tried:
route add -host 255.255.255.255 dev eth1
but still couldnt ping out

Why arent I able to ping outsite the network(yahoo.com)?
 
I added IP masquarading and it can ping outside, but it is not resolving domains,
It can't ping yahoo.com put it can ping 216.109.112.135

why wont it resolve domains names?

iptables are set to resolve DNS:
#Accept DNS, cause it's warm and friendly
iptables -A INPUT -p udp --source-port 53 -j ACCEPT
iptables -A INPUT -p udp --destination-port 53 -j ACCEPT

They firewall can resolve domains ok.

Got any tips?
 
The actual error I get when tryiing to do an nslookup on computer1 is:
C:\Documents and Settings\Doug>nslookup yahoo.com
*** Can't find server name for address 10.10.0.1: No response from server
*** Default servers are not available
Server: UnKnown
Address: 10.10.0.1

*** UnKnown can't find yahoo.com: No response from server

C:\Documents and Settings\Doug>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top