Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 9th, 2004, 06:15 AM
depmod13 depmod13 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 19 depmod13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Linux Port Forwarding Question (Ip Limited)

Hi,

I am relatively new to Linux. I managed to install a mandrake 10.0 P4 server and hosting some PHP apps on it. It is inside our LAN (small lan just 6 comps except the server) and we are connected to the net via a hardware router which has firewalls etc on it. And the server is just another machine with a static ip behind the router.

I want the users to connect to this server from their homes by internet. I can set up a virtual service to let them connect but I want to limit the ip s. I've searched the net about it and I guess I can do it by ipchains or iptables. What I want to do is open a new port on my linux server (eg port 10001 and forward the same port to the same server's port 443 (I use SSL) for selected ip's. If I can do that I can open a virtual server on my hardware router forward it to port 10001 and if the connection request comes from a valid ip forward it to port 443 for connection.

Sorry for the long question but I wanted to be clear.

Thanks in advance

Reply With Quote
  #2  
Old September 10th, 2004, 12:15 AM
Steve9R Steve9R is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 58 Steve9R User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 33 m 47 sec
Reputation Power: 6
Just setup an ACL on your firewall .. something like..

permit tcp host <customer IP> host <mandrake IP> eq 10001

depends of course whether you are running a cisco.. but you can do this on most quality firewalls anyway...

Steve

Reply With Quote
  #3  
Old September 10th, 2004, 03:37 AM
depmod13 depmod13 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 19 depmod13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Steve9r,

Unfortunately my firewall is on a sytem that is firewall, router, printserver. Brand is SMC. I can do smth like you said via the web interface on it. But I want to change it programatically (like running a linux command from PHP). Can't I do it by ipchains or smth like that?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > Linux Port Forwarding Question (Ip Limited)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT