User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion > Hardware and Tech Support

Reply
Thread Tools Display Modes
Unread 19 Nov 2002, 17:48   #1
Miserableman
Not a Cow
 
Join Date: Nov 2000
Location: Brighton, UK
Posts: 201
Miserableman is an unknown quantity at this point
Linux networking help

Last week I posted that Mandrake 9 was easy to get working as a router. Well, I change my story :O/ My linux box sits between my cable modem and a hub that spiders to the rest of the house. I had a whole lot of trouble getting both interfaces up and running, but now my internal ip is static and functioning, and my external interface is getting an ip from NTLs DHCP server.

This is something along the lines of 10.x.x.x - what usually follows is you open up a web browser, point it anywhere at the internet, and you get routed to NTLs authentication page. Once your computer is authenticated you restart, get a proper 80.x ip and you're ready to roll.

Except that it's not happening. I can't even ping my gateway, let alone use a web browser. Figuring that it may be a firewall issue, I shutdown shorewall, and now I can't ssh to or ping the linux box from my Windows client (although it can successfully ping the other way), and attempting to ping the gateway produces something along the lines of:

"Ping failed:sendmsg not allowed"

Basically, I have nfi, I'm out of my depth and out of ideas. I'm on a computer at Uni atm, which means ifconfig/netstat info is a bit tricky to paste :O/ Mandrakes auto-configuration utility made a bloody mess of it, to be frank, and I'm not ruling out the possibility of something it ****ed up getting in the way of this.

Anyone able to help?
__________________
<GSVsleep> cows would live a lot longer if they werent made out of steaks and leather
Miserableman is offline   Reply With Quote
Unread 19 Nov 2002, 19:24   #2
Cocaine
Guest
 
Posts: n/a
Code:
#!/bin/bash

/sbin/dhcpcd eth0

/sbin/ifconfig eth1 192.168.0.1 netmask 255.255.255.0

/sbin/iptables -F

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
is the little bash script that sets my gateway up which is in exactly the same position as yours

local network card being eth1 and external eth0
  Reply With Quote
Unread 20 Nov 2002, 02:59   #3
Laze
Registered User
 
Join Date: Jul 2001
Posts: 15
Laze is an unknown quantity at this point
You may well also need to enable packet forwarding

echo 1 > /proc/sys/net/ipv4/ip_forward
will do this if you are not using some specific tool to start the forwarding
Laze is offline   Reply With Quote
Unread 20 Nov 2002, 03:48   #4
Miserableman
Not a Cow
 
Join Date: Nov 2000
Location: Brighton, UK
Posts: 201
Miserableman is an unknown quantity at this point
Quote:
Originally posted by Laze
You may well also need to enable packet forwarding

echo 1 > /proc/sys/net/ipv4/ip_forward
will do this if you are not using some specific tool to start the forwarding
I'm not listening to you, you're just an Ensign!!!!11
__________________
<GSVsleep> cows would live a lot longer if they werent made out of steaks and leather
Miserableman is offline   Reply With Quote
Unread 20 Nov 2002, 13:50   #5
Cocaine
Guest
 
Posts: n/a
Quote:
Originally posted by Miserableman


I'm not listening to you, you're just an Ensign!!!!11
heh

hes right tho, missed that line in my copy n paste
  Reply With Quote
Reply


Thread Tools
Display Modes

Forum Jump


All times are GMT +1. The time now is 12:50.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018