• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

LINUX Experts needed !!

NucleusWDS

Senior member
Sep 20, 2000
673
0
0
Please help ...
1. I've managed to setup IP Masquerading :)
ie all my Windows PC have access to the internet using 1 connection via my Linux box.

2. I've managed to setup DHCP with gateway/router configuration. :)
ie my Linux box automatically assigns each of my Windows PC with an IP no. + network configuration.

NOW I stuck on using Windows PC to setup my WEB/FTP/GAME servers. Therefore all my servers will be running behind the Linux box.
Can this be done? ... What do I have to do?

Previous attempts using IP Chains didn't quite work.
I've heard that 'SQUID' caching proxy server is the one to use ... is that correct?

Any help is much appreciated ... thanks :)
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
ipmasqadm, use the portfwd portion to forward the FTP and WWW ports (21,80)
 

Shuxclams

Diamond Member
Oct 10, 1999
9,286
15
81
#Napster Rule
echo "Napster rule started....................."

ipmasqadm portfw -a -P tcp -L <WAN IP> 6699 -R 192.168.1.0 6699

#Gnutella port forward rule.
echo &quot;Gnutella rule started....................&quot;

ipmasqadm portfw -a -P tcp -L <WAN IP> 6346 -R 192.168.1.0 6346

#FTP Rule
echo &quot;Starting FTP portforwarding................&quot;

ipmasqadm portfw -a -P tcp -L <WAN IP> 21 -R <server IP> 21
ipmasqadm portfw -a -P tcp -L <WAN IP> 20 -R <server IP> 20

#Terminal Server Rule
echo &quot;Starting Terminal server rule...................&quot;

ipmasqadm portfw -a -P tcp -L <WAN IP> 3389 -R <server IP> 3389

#VNC rule
echo &quot;Start VNC rule......................&quot;

ipmasqadm portfw -a -P tcp -L <WAN IP> 5900 -R <server IP> 5900


#Website rule
echo &quot;HTTP forwarding.......................&quot;

ipmasqadm portfw -a -P tcp -L <WAN IP> 80 -R <server IP> 80

#Mail settings
echo &quot;e-mail portforwarding........................&quot;

ipmasqadm portfw -a -P tcp -L <WAN IP> 25 -R <server IP> 25
ipmasqadm portfw -a -P tcp -L <WAN IP> 110 -R <server IP> 110
ipmasqadm portfw -a -P tcp -L <WAN IP> 135 -R <server IP> 135

As long as you know the port number you can specify forwarding to any machine on the LAN.


SHUX

 

ArkAoss

Banned
Aug 31, 2000
5,437
0
0
im newer to linux than anything, im a total idiot, so here goes my look at the dumb fool question:
those lines you list shuxclams they need to be added to an file someplace to enable napster to work after a linux box right? which file. also will icq need a line like that? I'm going to be trying for the first time a linux server running from a floppy disk (maybe a 300mb hard drive)
 

Zach

Diamond Member
Oct 11, 1999
3,400
1
81
Usually I put a script that sets up forwarding/firewalling called rc.firewall in my /etc/rc.d/rc.local directory, and those lines would be in that file
 

NucleusWDS

Senior member
Sep 20, 2000
673
0
0
Hey Shuxclams what does <WAN IP> mean?
Is that the external interface ... 'ppp0' or 'eth1' ? (my 'eth0' is my internal LAN interface)
Does it have to be a fixed ip no.?

ALMOST there ... just a few more hints please :)


BTW Triple booting Win98, Win2K and Linux is GREAT !!!
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
<WAN IP> means the IP assigned to the interface that's connected to the internet, not to your internal network.

If you need a quick script to grab the IP each time because you have a dynamic IP, just ask.
 

M

Senior member
Oct 9, 1999
523
0
0
ArkAoss, There are no simple answers to the questions you asked both here, and in the thread you posted about freesco. They are simply things you need to research yourself. I suggest you read some more about TCP/IP, routing, and Network Address Translation. There are lots and lots of good information sources on the web for all of these topics, and particularly their implementations in unix systems, so I would suggest that you have a search with google, and also take a peek at The Linux Documentation Project. Once you've got a good grounding in the concepts of this, come back and ask more specific questions. With a bit of luck, you might even be able to answer the questions for yourself.

Unix, and TCP/IP networking are not particularly easy things to learn, but they're not that hard, either. All it takes is a little research, and judicious use of the many, many online resources.
 

NucleusWDS

Senior member
Sep 20, 2000
673
0
0
Thanks GUYS !!! ... EVERYTHING works superb !!!

I edit the <WAN IP> to the IP address (dynamic) given by my ISP when I connect to the internet (ppp0).
But now I need a quick script to grab the IP each time because I have a dynamic IP.


So 'Damaged' can you give me that script ... PLEASE :)

A BIG thanks again to all ...

 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
extip=&quot;/sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'&quot;


That defines a variable (extip) the massages it down to assigning the IP assigned to ppp0 to extip.

2-4-6
 

NucleusWDS

Senior member
Sep 20, 2000
673
0
0
BRILLIANT ... I'll give that a try.

Oh one more thing ... what's the MAIN difference between portfw and autofw
I know that with 'portfw' you have to manually setup EXTERNAL IP and
with 'autofw' it just automatically forwards the port.
Is that correct? Are there any security implications here?

Thanks :)