Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-12-2005, 12:22 PM
|
#1
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Rep:
|
My Slackwarebox won't masqerade
I'm running Slackware 10.0 as server but my lan cant connect internet.  (
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....  (
|
|
|
|
02-12-2005, 12:29 PM
|
#2
|
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
|
02-12-2005, 04:11 PM
|
#3
|
|
Member
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184
Rep:
|
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.
|
|
|
|
02-12-2005, 05:06 PM
|
#4
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Original Poster
Rep:
|
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??
|
|
|
|
02-12-2005, 06:34 PM
|
#5
|
|
Member
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184
Rep:
|
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.
|
|
|
|
02-13-2005, 05:37 AM
|
#6
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Original Poster
Rep:
|
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.
|
|
|
|
02-13-2005, 07:12 AM
|
#7
|
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
run
traceroute yahoo.com
from ur client machine and post the O/P
regards
|
|
|
|
02-14-2005, 09:01 AM
|
#8
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Original Poster
Rep:
|
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..
|
|
|
|
02-14-2005, 09:06 AM
|
#9
|
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
for windows run
tracert yahoo.com
|
|
|
|
02-14-2005, 11:19 AM
|
#10
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Original Poster
Rep:
|
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.
|
|
|
|
02-14-2005, 11:26 AM
|
#11
|
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
|
02-14-2005, 11:40 AM
|
#12
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Original Poster
Rep:
|
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?!?
|
|
|
|
02-14-2005, 11:46 AM
|
#13
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Original Poster
Rep:
|
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??
|
|
|
|
02-14-2005, 11:52 AM
|
#14
|
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
what is the IP of ur internet gateway??
|
|
|
|
02-14-2005, 11:53 AM
|
#15
|
|
Member
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60
Original Poster
Rep:
|
Its 80.68.113.1
|
|
|
|
All times are GMT -5. The time now is 06:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|