My Slackwarebox won't masqerade
I'm running Slackware 10.0 as server but my lan cant connect internet. :o(
I have used Guardog and Guidedog to install firewall/masquerad and everything works fine from the server but from lan it's just possible to reach the server. I checked route... Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.3.0 * 255.255.255.0 U 0 0 0 eth1 80.68.113.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 80.68.113.1.kar 0.0.0.0 UG 0 0 0 eth0 and lsmod... ipt_MASQUERADE 1304 2 (autoclean) iptable_nat 15438 3 (autoclean) [ip_nat_irc ip_nat_ftp ipt_MASQUERADE] ipt_state 504 169 (autoclean) ip_conntrack 19236 2 (autoclean) [ip_conntrack_irc ip_nat_irc ip_conntrack_ftp ip_nat_ftp ipt_MASQUERADE iptable_nat ipt_state] iptable_filter 1644 1 (autoclean) ip_tables 12416 12 [ipt_MARK ipt_REJECT ipt_limit ipt_LOG ipt_mark iptable_mangle ipt_MASQUERADE iptable_nat ipt_state iptable_filter] Well I dont understand whats wrong and I dont know where to look.... :o( |
there is script in /etc/rc.d/rc.ipforward
u need to ahve it and enable it lookout in the "pkgtool" for using that regards |
Not sure if Slackware is the same as the other distros but on the server try typing
echo 1 > /proc/sys/net/ipv4/ip_forward to turn on IP forwarding for your clients. Then make sure NAT is enabled using iptables -t nat -A POSTROUTING -o interface_name -j MASQUERADE Add the appropriate default gateways to the server and clients. |
Tanks very much for the help but nothing work...
If I run: /etc/rc.d/rc.ip_forward restart linus tells me: Disabling IPv4 packet forwarding. Activating IPv4 packet forwarding. The script does: # Start IP packet forwarding: ip_forward_start() { if [ -f /proc/sys/net/ipv4/ip_forward ]; then echo "Activating IPv4 packet forwarding." echo 1 > /proc/sys/net/ipv4/ip_forward fi There maybe are somthing else..?!?! Is there something else I shall look at?? |
Did you make sure the clients have a valid DNS resolver configured in /etc/resolv.conf?
Can you ping by IP address? I just noticed in your routing table, why is the default gateway listed as 80.68.113.1.kar? Notice the kar after the 1. |
The clients are Win Xp, Win 98 Mandrake and Slackware...
They are not changed since they run at my Mandrake-server which I have run in a couple of years.. I run DHCP at eth0 from my ISP karlsborg... therefor the .kar I dont know if it make some sense and how I can remove it. I'll look at that. |
run
traceroute yahoo.com from ur client machine and post the O/P regards |
hmm.. when I dont have access to the linuxclients, is it possible to run traceroute from windows... ??
from windowsclient I can ping the server, both eth0 and eth1 but I cant ping anything else.. |
for windows run
tracert yahoo.com |
It does nothing.. it looks like it dont se any dns-server.
if I run tracert 80.68.113.230 it gives me som lines but if I run tracert www.something.something it tells (translated from swedish) It wasnt able to consider target hostname kruthuset.se. |
i am sure that u have a problem with ur DNS
see thew O/P of ipconfig on windows check ur DNS settings nad firewall if any regards |
If I ping from the server:
www.passagen.se -> ok 80.68.226.133 -> ok from client: www.passagen.se -> unknown host 80.68.226.133 -> timeout It shouldnt give timeout if it just was a missing dns-server?!? |
How can I se the dns-server in slackware i get from dhcp??
Do I have to install a local dnsserver if I use this server as dnsserver in client?? |
what is the IP of ur internet gateway??
|
Its 80.68.113.1
|
All times are GMT -5. The time now is 07:15 PM. |