Howto: open externally accessible ports for SSH server, webserver, etc.

From andLinux

(Difference between revisions)
Jump to: navigation, search
(initial version)
Current revision (19:43, 7 May 2009) (edit) (undo)
m
 
(One intermediate revision not shown.)
Line 7: Line 7:
<tt>eth0=slirp,,tcp:22:22</tt>
<tt>eth0=slirp,,tcp:22:22</tt>
-
and ensure that your Windows firewall settings allow colinux-slirp-net-daemon.exe to open port 22. Then you are able to ssh into your andLinux installation using your '''andLinux''' and your '''Windows''' IP address. In case your Windows computer is located in a private subnet behind a router, you additionally need to forward TCP port 22 in your router and then use the router's public IP address to access your andLinux installation from the internet. Of course, you should pay attention to the usual security precautions like setting strong passwords etc.
+
and ensure that your Windows firewall settings allow ''colinux-slirp-net-daemon.exe'' to open port 22. Then you are able to ssh into your andLinux installation using your '''andLinux''' login and your '''Windows''' IP address. In case your Windows computer is located in a private subnet behind a router, you additionally need to forward TCP port 22 in your router and then use the router's public IP address to access your andLinux installation from the internet. Of course, you should pay attention to the usual security precautions like setting strong passwords etc.
To configure a webserver, the things to do are more or less identical, except that you'll have to use TCP port 80 instead of 22. In case you wish to open multiple ports, they have to be separated by slashes in the configuration file, e.g. like this:
To configure a webserver, the things to do are more or less identical, except that you'll have to use TCP port 80 instead of 22. In case you wish to open multiple ports, they have to be separated by slashes in the configuration file, e.g. like this:
<tt>eth0=slirp,,tcp:22:22/tcp:80:80</tt>
<tt>eth0=slirp,,tcp:22:22/tcp:80:80</tt>
 +
 +
== See also ==
 +
* [http://colinux.wikia.com/wiki/Network#Forwarding_Ports_over_Slirp coLinux documentation on port forwarding]

Current revision

In order to make any servers running on andLinux (e.g. sshd, apache2, etc.) accessible from the Internet, you can activate port forwarding on the coLinux slirp network interface (eth0). For example, to open TCP port 22 (ssh), edit the andLinux configuration file C:\Program Files\andLinux\settings.txt as follows: change the line with

eth0=slirp

to

eth0=slirp,,tcp:22:22

and ensure that your Windows firewall settings allow colinux-slirp-net-daemon.exe to open port 22. Then you are able to ssh into your andLinux installation using your andLinux login and your Windows IP address. In case your Windows computer is located in a private subnet behind a router, you additionally need to forward TCP port 22 in your router and then use the router's public IP address to access your andLinux installation from the internet. Of course, you should pay attention to the usual security precautions like setting strong passwords etc.

To configure a webserver, the things to do are more or less identical, except that you'll have to use TCP port 80 instead of 22. In case you wish to open multiple ports, they have to be separated by slashes in the configuration file, e.g. like this:

eth0=slirp,,tcp:22:22/tcp:80:80

See also

Seen a page that contains spam or objectionable material? Please report the link and/or login of the author to david @ andLinux . org (remove spaces)