Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
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.
|
|
11-17-2005, 12:52 AM
|
#1
|
Member
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97
Rep:
|
eth0 / eth1 and ppp0
I've been playing around with LE2005 for a few months now and after the trauma of getting my SAGEM fast 800 USB modem running ADSL on ppp0 I have been trying unsuccessfully to get the LAN working. The hardware is a Realtek RTL 8139 which runs perfectly on my 3 pc LAN under windows!
LE2005 assigns eth0 automatically and claims to be "up" despite the fact that it has no ip address. Allocating one manually does not help.
I used "control centre" to configure the LAN and assigned eth1 as offered. This installed without complaint and sure enough appears in IFCONFIG as eth1 with the manual ip I assigned.
However, pinging to or from the new address indicates packetes are not getting through and to all intents and purposes the system is not connected.
Amazingly, when I go back to "control center" and use the network connection monitor, the graphical display clearly shows the received ping activity from other machines on the network. So is it working or not? I certainly cant get any other signs of it being connected to my LAN.
To add to the confusion - my ADSL intenet connection on ppp0 is described as "eth0" in the "control center" graphical monitor and clearly displays the internet traffic.
Does anyone have ideas on how I can sort out this mess without doing a major re-install?
Regards
IK
(ps - I am currently not even trying to share the internet connection over the LAN. Just to have both working separately would be a major step forward.)
|
|
|
11-17-2005, 04:11 PM
|
#2
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
post the output of And post the files /etc/shorewall/interfaces /etc/shorewall/policy /etc/shorewall/zones /etc/shorewall/masq
Have you tried just going through the Mandrake internet connection sharing wizard? It might fix things up properly for you.
|
|
|
11-18-2005, 01:18 AM
|
#3
|
Member
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97
Original Poster
Rep:
|
Thanks for the reply tkedwards - here it is:
eth0 Link encap:Ethernet HWaddr 00:60:4C:2A:B5:75
inet6 addr: fe80::260:4cff:fe2a:b575/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:65535 Metric:1
RX packets:11392 errors:0 dropped:0 overruns:0 frame:0
TX packets:6592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16496560 (15.7 Mb) TX bytes:543106 (530.3 Kb)
eth1 Link encap:Ethernet HWaddr 00:06:4F:05:1C:6A
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::206:4fff:fe05:1c6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:618 (618.0 b)
Interrupt:9 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:105 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11366 (11.0 Kb) TX bytes:11366 (11.0 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:202.123.20.23 P-t-P:202.123.20.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:11355 errors:0 dropped:0 overruns:0 frame:0
TX packets:6556 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:16473131 (15.7 Mb) TX bytes:410699 (401.0 Kb)
sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::202.123.20.23/96 Scope:Compat
inet6 addr: ::127.0.0.1/96 Scope:Unknown
inet6 addr: ::192.168.0.2/96 Scope:Compat
UP RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
##############################################################################
#ZONE INTERFACE BROADCAST OPTIONS
#
net ppp0 detect
loc eth0 detect
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
###############################################################################
#SOURCE DEST POLICY LOG LIMIT:BURST
# LEVEL
#
# THE FOLLOWING POLICY MUST BE LAST
#
loc net ACCEPT
loc fw ACCEPT
fw loc ACCEPT
fw net ACCEPT
net all DROP info
all all REJECT info
#LAST LINE -- DO NOT REMOVE
#ZONE DISPLAY COMMENTS
net Net Internet zone
loc Local Local
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE
###############################################################################
#INTERFACE SUBNET ADDRESS PROTO PORT(S)
ppp0 192.168.0.0/255.255.255.0
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
The last time I tried the internet sharing wizard it screwed my internet connection completely. I haven't dared try since!!!
IK
|
|
|
11-23-2005, 01:07 AM
|
#4
|
Member
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97
Original Poster
Rep:
|
Hello all
tkedwards gave me a clue when he mentioned SHOREWALL. If I stop SHOREWALL in the control centre/services then I can both ping and browse my LAN.
When I restart SHOREWALL the LAN dissappears again.
I have looked at the various files as suggested but I'm afraid I have no idea how to set up SHOREWALL to accept the machines on my LAN.
Can anybody help with this please?
IK
|
|
|
11-23-2005, 01:44 AM
|
#5
|
Member
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97
Original Poster
Rep:
|
Hello again - further to my last post - I have SHOREWALL running again with the LAN now functioning by editing the file /etc/shorewall/zones to include the line :"loc eth1 detect"
Great! the immediate problem seems solved - Thanks again to tkedwards for pointing me in the right direction.
Now to pursue the possibility of having other machines on my LAN browse the internet through this server.
"Idiot's guide" instructions for achieving this would be most appreciated.
IK
|
|
|
11-23-2005, 02:26 AM
|
#6
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Make sure is in /etc/shorewall/shorewall.conf
Try changing the line in /etc/shorewall/masq to
Code:
#INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC
ppp0 eth1
|
|
|
11-24-2005, 02:07 AM
|
#7
|
Member
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97
Original Poster
Rep:
|
internet connection sharing
OK many thanks. - Now have it 50% working! .........
3 PCs on the LAN, each can see the other, share files etc.
PC0 running MDK LE2005 - connected to internet thro' ADSL usb modem
PC1 running MDK 9.2 . I can browse the internet over the LAN no problem
PC2 running WinXP. Can't browse the internet but can use internet explorer to browse the Apache server running on PC0 !
It must be some setting on the windows box - I will keep on poking about.
Thanks again.
IK
PS I just checked my shorewall/Masq file and the interface line says :"ppp0 192.168.0.0/255.255.255.0 ???????
|
|
|
11-24-2005, 02:53 AM
|
#8
|
Member
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97
Original Poster
Rep:
|
OK - got the windows machine cracked - I needed to tell it about the gateway (PC0) and the DNS at the ISP. Works fine now.
***********************************************************************
Well I guess I should really start another thread, but I'll try here first:
With all three machines capable of internet connection now I can pick my mail up at any of them. But what I would really like is to have all the inboxes synchronised and containing the same mail.
Unfortunately with the current set-up, downloading mail into one box means it is then not accessible by the others.
Do I need to run some sort of a mail server to achieve this?
IK
|
|
|
11-26-2005, 08:49 PM
|
#9
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Yes. Basically you need to do 4 things:
1) Setup postfix for local delivery. This means you should be able to send email to username@localhost and see it appear properly in your /var/spool/mail/username. Use mail from the command line (if you don't have that command install the package mailx or nail).
2) Install procmail, setup postfix to deliver through procmail and create a .procmailrc file in your home dir.
3) Install the imap package. The one that comes with Mandriva (wu-imap I think) is fairly basic and shouldn't even need any configuration. It should just pickup the mail from ~/Mail
4) Install fetchmail and fetchmail-daemon and configure fetchmailrc to collect your email from your ISP
|
|
|
All times are GMT -5. The time now is 11:56 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
|
|