• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

setup of an proxy server

I have a DSL modem with a static IP address for my Linux/apache server.  The problem is that I need for my other systems to use this line to connect to the web. I have two network cards, one ISA the second PCI; the PCI card works, but I can not configure the ISA card.  I'm a new Linux user: its the best thing but very hard to get things working.  Please give me very simple instruction to get my system working
0
sbsys
Asked:
sbsys
  • 9
  • 8
1 Solution
 
j2Commented:
TO config the ISA i would use a dos boot floppy, boot to dos and use whatever setup tool came with the card to disable PnP and set it to IRQ10 and I/O 300. ANd then yo umight have to tell your BIOS that irq10 is in use by a "legacy" or "non PnP device".

I am assuming you "just want to share the internet connection" and dont really want a proxy server?

I would suggest

1. install ipchains (if not done already) http://www.rustcorp.com/linux/ipchains/  (or use the RPM if you are using redhat)

2. DOwnload http://www.pointman.org/PMFirewall/download/pmfirewall-1.1.3.tar.gz

3. Unpack it (tar zxvf pmfirewall-1.1.3.tar.gz)

4. Install it (cd to the directory, then run ./install.sh)

5. Answer the questions (defaults are good enough), but answer "yes" to the question "Will this box Masquerade connections for other PC's (y/n):"

Done. (pmfirewall also gives you decent firewalling)
0
 
sbsysAuthor Commented:
I think you left out a couple of things
   1. How do I install ipchains
   2. Do I need to rebuild my kernel

I'm just a applications programmer and tring to learn LINUX, so please forgive me for being "DUMB"

Thx very very much
Lonnie   :)
0
 
j2Commented:
1. if yuo have the rpm just

rpm -Uvh name-of-rpm.rpm

if yo udo not use redhat/mandrake you will have to install manually according to the install manual fo ripchains.


2. No, not in most cases (As in stock RH / Mandrake / SuSE kernels) for other distributions the answer is "Don't know"

Which distro are you using?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
sbsysAuthor Commented:
redhat/mandrake
0
 
j2Commented:
the hte ipchains rpm is included on the CD, unless mandrake chose to exclude them.
0
 
sbsysAuthor Commented:
I've install all the programs listed above, now the problem is to put all this together.  I have a ADSL line going to my HUD and one windows95 system with one network card also connected to the hud and my linux box with one network card connected to the same hud.  If someone can give me the complete configuration step by very easy step I can give 100 points.


thanks
sbsys

PS: the only thing I want to do is to change the IP address and then play <----       ;)
0
 
j2Commented:
First of all, most games does not work like this.

you have the step-by-step in steps 3-5 did you follow them?
0
 
sbsysAuthor Commented:
I think my rules are wrong, I just have a simple network with a ADSL.  I've applied a the programs and used the sample rules to try to get out though my ADSL modem which is connected to my hub.  My install is Mandrake 6.5
the IPCHAINS version is  ipchains 1.3.9, 17-Mar-1999.  when I type in "/sbin/ipchains -L" the following appears:


Chain input (policy ACCEPT):
target     prot opt     source                destination           ports
ACCEPT     icmp ------  knowspick.com        anywhere              any ->   any
ACCEPT     all  ------ !crtntx1-ar1-077-000.dsl.gtei.net/24 anywhere
  n/a
ACCEPT     all  ------ !crtntx1-ar1-077-000.dsl.gtei.net/24 anywhere
  n/a
Chain forward (policy ACCEPT):
target     prot opt     source                destination           ports
ACCEPT     all  ------  crtntx1-ar1-077-000.dsl.gtei.net/24 anywhere
  n/a
Chain output (policy ACCEPT):
target     prot opt     source                destination           ports
ACCEPT     all  ------ !crtntx1-ar1-077-000.dsl.gtei.net/24 anywhere
  n/a
ACCEPT     all  ------ !crtntx1-ar1-077-000.dsl.gtei.net/24 anywhere
  n/a                                                                          




Please help
Lonnie

0
 
j2Commented:
Hmm, that doesnt look like a set of pmfirewall rules. did you start the firewall after installing it?
0
 
sbsysAuthor Commented:
Yes, I'm very confused; what I'm getting from you is just install PMFirewall and that's it........ I'm seeing a lot of ducumentation on "IPChains" rule. Do I have to configure "IPChain" rules and/or "PMFirewall" rules.  Tell me what I need to do......



:(      :(
0
 
j2Commented:
PM Firewall will configure the ipchains rules. so once you have done /etc/rc.d/init.d/pmfirewall start  

it should be up.
0
 
sbsysAuthor Commented:
I have done    /etc/rc.d/init.d/pmfirewall start and I still can't access the web from my win98 machine.  Let me sxplain my configuration;

      1.) linux apache machine with one network card
      2.) win98 machicne with one network card

My ADSL modem is plugged into my hub alone with both of my machines listed above; that is it!!

Do I need to configure my win98 machoine as far as gateway and/or DNS?????

Also when you configure the PMFirewall, it prompts for "eth0" divice for out going traffic and "eth1" for incomming traffic, but I had set both to "eth0" because I only have one network card in my Linux box.
   
0
 
j2Commented:
pmfirewall assumes you have two cards in the firewall server. There is no good solution for running with a single nic.

"Do I need to configure my win98 machoine as far as gateway and/or DNS?????"  - yes, you will have to set it to use the linux as default gw, and set it to use the DNS of your ISP.
0
 
j2Commented:
Sure you COULD run a single NIC and use ip aliasing, but i wouldnt, since that could mean problems with leaking broadcasts etc etc etc.
0
 
sbsysAuthor Commented:
How do I set up the second NIC, it's a ISA
0
 
sbsysAuthor Commented:
If I  install a second card, which belongs to the network and what will the second card be connected to?
0
 
j2Commented:
Card 1 -> ADSL modem
Card 2 -> Hub or second computer

TO set up an isa card, the easiest way is to boot with a DOS floppy, then use whatever config utility the card has to disable pnp and set io to 300 and IRQ to 10. (Then you have to find the proper module to load, most 'generic' ISA boards are NE2000 compatible.)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 9
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now