|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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? |
![]() |
| Viewing: Dev Shed Forums > System Administration > Networking Help > Linux Port Forwarding Question (Ip Limited) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|