LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-14-2006, 09:35 PM   #1
drakebasher
Member
 
Registered: Aug 2004
Location: Proprio Qui
Distribution: Debian
Posts: 85

Rep: Reputation: 16
shared modem isn't happening


I can't believe how much time I've wasted on this:
I have a few workstations that access internet through a single server with firewall which has a dial-up modem attached. I want for each of the workstations to be able to call for the modem to connect. Since it is dialup, the external address is dynamic, so this requires that certain iptables entries be set to the "current" IP address.

I have gotten as far as writing a crude script that uses ssh to run pon on the server and then run a script that checks the current IP and uses that as a variable to reset those rules that use the dynamic address. But the problem is, to change iptables requires root permission and that's where I'm stuck. I tried setting the "dip" group for sudo permissions to run my script:
Code:
%DIP NETWORK80 = NOPASSWD: /usr/local/bin/getMasqInternet
but that doesn't seem to work for a member of group 'dip' who is not also member of group 'sudo'

I have tried linesrv, using the xlc client, but I run into the same problem with setting iptables for the dynamic address ('linesrv' is a member of group 'dip' by default). On my fedora system, I had Firestarter which could be set to start when ppp0 comes up, but I'm not so keen on Firestarter.

I'm sure this has been done dozens of ways. How should I do it,so I can move on to the next thing???

Thanks-
 
Old 02-15-2006, 06:28 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
To achieve the same goal I found and downloaded a program called masqdialer, which does all the server stuff. It's pretty old and requires IP forwarding configured into the kernel, but it works. All you do is install it and modify the config file as necessary. Then there's individual client programs, of which only the command-line, KDE and win32 versions seem to work. Then adjust your iptables rules accordingly for the port that you set for masqdialer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration