Configuration DHCP and Gateway on linux machine
I can ping to client computers, but they can't to my machine. My machine is running DHCP,DNS service and it is gateway. this is dhcpd.conf:
________________________________________ ddns-update-style none; subnet 192.168.1.0 netmask 255.255.255.0 { # default gateway option routers 192.168.1.1; option subnet-mask 255.255.255.0; option domain-name "homeland.net"; option domain-name-servers 192.168.1.1; range dynamic-bootp 192.168.1.16 192.168.1.252; default-lease-time 21600; max-lease-time 43200; } ____________ BTW my machine has ip address: 192.168.1.1 I normaly connect to internet but when I ping 192.168.1.1 from other computer which is running xp it says: Destination port unreachable. why? |
so the clients can conect to the internet fine, but the problem is they can't ping the gateway, right???
sounds like the gateway's firewall rules may be blocking pings... what firewall are you using??? |
no, 'server' can connect to internet, but it can't share internet connection.
|
BTW
Oh my god, everything is working just fine! I have two clients connected to internet through my linux box. Thanks, it was problem in gateway...
I hope so configuration is not going to change after restarting OS :rolleyes: if you have time for explain, I'm so curious, how it works: iptables -A INPUT -p ICMP -s 0/0 --icmp-type 8 -j ACCEPT ??? |
you could generate a very decent iptables gateway script using this:
http://easyfwgen.morizot.net/gen/ once the script is generated, copy and paste it into a text file, make it executable, and then run it as root to see if it works... chmod a+x firewall-example.sh ./firewall-example.sh when you know it works, then you can make it start automatically at boot time by adding it to your startup scripts... you could also use shorewall if you want, but the web-generated iptables script method is less of a hassle to get going... http://www.shorewall.net and if you want something with a graphical interface: http://firestarter.sourceforge.net/ though shorewall does have a webmin module that allows you to configure it through your browser: http://www.webmin.com oh, and if you wanna learn more about iptables and stuff, here's a good link to get started: http://www.linuxguruz.com/iptables/ |
All times are GMT -5. The time now is 07:09 PM. |