LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   MEPIS (https://www.linuxquestions.org/questions/mepis-64/)
-   -   MEPIS as a gateway? (https://www.linuxquestions.org/questions/mepis-64/mepis-as-a-gateway-497554/)

hermouche 11-01-2006 10:10 AM

MEPIS as a gateway?
 
hy

I've got a Box with two NIC's.
LAN: 192.168.0.2 eth1
WAN: 192.168.1.2 eth0

I've got a modem 192.168.1.1 which is as the same time router.

My LAN as you can imagine is on the 192.168.0.0 subnet.

Well, my problem is that i have internet connection (outside)in my WAN and not in the LAN area.

this is what i did:
iptables -t nat -A POSTROUTING -O eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe iptable_nat

I setted up a DHCP for my LAN, but how to start it in MEPIS?

In fedora "service dhcpd start"
and " chkconfig --level 345 dhcpd on" if we want to boot the box and have the DHCPD running automatically.

Did i miss something?

Thanks

red

hermouche 11-02-2006 11:21 AM

i am looking for the command of how to start the DHCPD within MEPIS??

thanks

red

mdmarmer 11-02-2006 01:04 PM

DHCP in Mepis 6.0
 
You can configure in mutilities or in console as root type

dhclient


to get to mutilities type

mutilities

in console as root.

Mike


Use the wiki http://www.mepis.org/docs

Post to http://www.mepislovers.com great forum

hermouche 11-02-2006 11:02 PM

Quote:

Originally Posted by mdmarmer
You can configure in mutilities or in console as root type

dhclient


to get to mutilities type

mutilities

in console as root.

Mike


Use the wiki http://www.mepis.org/docs

Post to http://www.mepislovers.com great forum

OK thanks mdmarker.

Your commands work very well.

Now i would like to start the DHCPD (server) not the client, which means that my box will deliver IP's to other boxes.

Well i've already done the DHCPD script, now i would like to start it?

In fedora this is the command: (service dhcpd start)

Thanks again

red

hermouche 11-03-2006 12:21 AM

The other think is that when i follow graphically this link below:
Kmenu - Network folders - Network services it says:

" The zeroconf daemon (mdnsd) is not running "

What does it mean mdnsd and how to open the network services, in GUI or in Console mode doesn't matter?

thanks guys

red


All times are GMT -5. The time now is 11:56 PM.