Hello every one!
First of all... I`m new to FreeBSD and have allmost no expirience with unix systems, all the time i was, and at moment i`m using windows
what i`m doing and whats my problem ?
i`m trying to settup web/mail/dhcp and some other services on my secondary machine
my problem is with DHCP server, it is installed, and configured (i followed some few tutorials, and one friend of my helped but i dont know why i cant share internet with that machine..
here is my local network displacement on my house at moment
[DSL modem]-->[D-link DL-624]-->[My PC]
what i want to do is
[DSL modem]-->[D-link DL-624]-->[FreeBSD server]-->[My PC]
machine who has freebsd installed has 2 lan cards, rl0 and rl1 (realtek)
when i connect all pc's like i would like i dont get any internet, only lan connection is available..
here is my configurations
rc.conf
dhcpd.conf
freebsd machine works fine when its just connected to router, it gets internet, and lighttpd webserver works fine, allso ssh is working fine..
now i`m starting to wonder, if its even posible to connect everything like i want, maybe i should connect everything like this ?
[DSL modem]-->[FreeBSD server]-->[D-link DL-624]-->[My PC]
Feel free to add any comentary, good or bad its no matter, in my country every nobudy is polite when newbie asks any questions, so i`m "immune" to comentary like "what are you doing get out of here!!!" etc
i would be gratefull if some one could help me to fix this problem.
Btw i`m using FreeBSD 7.0
machine specs are
P3 933Mhz processor
512 SDRAM
20Gb IDE HDD
network specs
10mbit/s
i know its slow but its best i can get here for affordable price >.<
ps on this lan configuration
[modem]->[dlink]-pc's
are connected 3 pc's, 2 are desktop pc's and 1 laptop via wireless
Thanks for reading this huge post, and sorry for my bad language
First of all... I`m new to FreeBSD and have allmost no expirience with unix systems, all the time i was, and at moment i`m using windows
what i`m doing and whats my problem ?
i`m trying to settup web/mail/dhcp and some other services on my secondary machine
my problem is with DHCP server, it is installed, and configured (i followed some few tutorials, and one friend of my helped but i dont know why i cant share internet with that machine..
here is my local network displacement on my house at moment
[DSL modem]-->[D-link DL-624]-->[My PC]
what i want to do is
[DSL modem]-->[D-link DL-624]-->[FreeBSD server]-->[My PC]
machine who has freebsd installed has 2 lan cards, rl0 and rl1 (realtek)
when i connect all pc's like i would like i dont get any internet, only lan connection is available..
here is my configurations
rc.conf
Code:
mc_enable="YES"
gateway_enable="YES"
hostname="SCTG"
keymap="us.iso"
linux_enable="YES"
sshd_enable="YES"
dhcpd_enable="YES"
ifconfig_rl0="DHCP"
### web server ###
mysql_enable="YES"
lighttpd_enable="YES"
### Router ###
dhcpd_ifaces="rl1"
defaultrouter="192.168.0.1"
ipnat_enabl="YES"
ifconfig_rl0="inet 192.168.0.107 netmask 255.255.255.0"
ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0"
named_enabl="YES"
ppp_enable="YES"
ppp_nat="NO"
ppp_mode="ddial"
dhcpd.conf
Code:
option domain-name "apollo.lv";
option domain-name-servers 195.122.1.242;
option subnet-mask 255.255.255.0;
default-lease-time 86400;
max-lease-time 86400;
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.254;
option routers 192.168.0.1;
}
freebsd machine works fine when its just connected to router, it gets internet, and lighttpd webserver works fine, allso ssh is working fine..
now i`m starting to wonder, if its even posible to connect everything like i want, maybe i should connect everything like this ?
[DSL modem]-->[FreeBSD server]-->[D-link DL-624]-->[My PC]
Feel free to add any comentary, good or bad its no matter, in my country every nobudy is polite when newbie asks any questions, so i`m "immune" to comentary like "what are you doing get out of here!!!" etc
i would be gratefull if some one could help me to fix this problem.
Btw i`m using FreeBSD 7.0
machine specs are
P3 933Mhz processor
512 SDRAM
20Gb IDE HDD
network specs
10mbit/s
i know its slow but its best i can get here for affordable price >.<
ps on this lan configuration
[modem]->[dlink]-pc's
are connected 3 pc's, 2 are desktop pc's and 1 laptop via wireless
Thanks for reading this huge post, and sorry for my bad language