Страница 1 из 2

Dyndns farewall

Добавлено: 2011-10-28 19:55:18
kolya27
Кто может помочь как то убрать порт kolya27.dyndns.org:8081 что я мог заходить только через домен а порт что был невидимым

Re: Dyndns farewall

Добавлено: 2011-10-29 18:30:31
vadim64
а веб сервер какой?

Re: Dyndns farewall

Добавлено: 2011-10-31 5:43:40
AGN
Телепаты в отпуске :)
суть проблемы?
куда заходить?

Re: Dyndns farewall

Добавлено: 2011-10-31 7:21:06
vadim64
AGN писал(а):Телепаты в отпуске :)
суть проблемы?
куда заходить?
вы ничего не понимаете
разве не видно что человек проффессионал?
он всё понятно обьяснил, обитатели форума нехера не шарят если не могут ответить

Re: Dyndns farewall

Добавлено: 2011-10-31 12:00:23
kolya27
apache2

Re: Dyndns farewall

Добавлено: 2011-10-31 12:03:39
kolya27
Заходить на сайт например что я не писал там kolya27.dyndns.org:8081 а писал kolya27.dyndns.org и что он заходил на мой сайт без порта

Re: Dyndns farewall

Добавлено: 2011-10-31 12:50:54
vadim64

Код: Выделить всё

cat -n /usr/local/etc/apache2/httpd.conf

Re: Dyndns farewall

Добавлено: 2011-10-31 14:18:26
kolya27
Ну например я зашел и что мне там нужно делать (OpenSuse 11.3)

Re: Dyndns farewall

Добавлено: 2011-10-31 14:35:10
vadim64
например зашёл??)))
если вам нужна помощь, то вы должны выполнить эту команду в консоли и скопировать/вставить вывод сюда
оформив вывод с помощью тега code

Re: Dyndns farewall

Добавлено: 2011-10-31 14:36:06
kolya27
#
2 # /etc/apache2/httpd.conf
3 #
4 # This is the main Apache server configuration file. It contains the
5 # configuration directives that give the server its instructions.
6 # See <URL:http://httpd.apache.org/docs-2.2/> for detailed information about
7 # the directives.
8
9 # Based upon the default apache configuration file that ships with apache,
10 # which is based upon the NCSA server configuration files originally by Rob
11 # McCool. This file was knocked together by Peter Poeml <poeml+apache@suse.de>.
12
13 # If possible, avoid changes to this file. It does mainly contain Include
14 # statements and global settings that can/should be overridden in the
15 # configuration of your virtual hosts.
16
17 # Quickstart guide:
18 # http://en.opensuse.org/Apache_Quickstart_HOWTO
19
20
21 # Overview of include files, chronologically:
22 #
23 # httpd.conf
24 # |
25 # |-- uid.conf . . . . . . . . . . . . . . UserID/GroupID to run under
26 # |-- server-tuning.conf . . . . . . . . . sizing of the server (how many processes to start, ...)
27 # |-- sysconfig.d/loadmodule.conf . . . . . [*] load these modules
28 # |-- listen.conf . . . . . . . . . . . . . IP adresses / ports to listen on
29 # |-- mod_log_config.conf . . . . . . . . . define logging formats
30 # |-- sysconfig.d/global.conf . . . . . . . [*] server-wide general settings
31 # |-- mod_status.conf . . . . . . . . . . . restrict access to mod_status (server monitoring)
32 # |-- mod_info.conf . . . . . . . . . . . . restrict access to mod_info
33 # |-- mod_usertrack.conf . . . . . . . . . defaults for cookie-based user tracking
34 # |-- mod_autoindex-defaults.conf . . . . . defaults for displaying of server-generated directory listings
35 # |-- mod_mime-defaults.conf . . . . . . . defaults for mod_mime configuration
36 # |-- errors.conf . . . . . . . . . . . . . customize error responses
37 # |-- ssl-global.conf . . . . . . . . . . . SSL conf that applies to default server _and all_ virtual hosts
38 # |
39 # |-- default-server.conf . . . . . . . . . set up the default server that replies to non-virtual-host requests
40 # | |--mod_userdir.conf . . . . . . . . enable UserDir (if mod_userdir is loaded)
41 # | `--conf.d/apache2-manual?conf . . . add the docs ('?' = if installed)
42 # |
43 # |-- sysconfig.d/include.conf . . . . . . [*] your include files
44 # | (for each file to be included here, put its name
45 # | into APACHE_INCLUDE_* in /etc/sysconfig/apache2)
46 # |
47 # `-- vhosts.d/ . . . . . . . . . . . . . . for each virtual host, place one file here
48 # `-- *.conf . . . . . . . . . . . . . (*.conf is automatically included)
49 #
50 #
51 # Files marked [*] are created from sysconfig upon server restart: instead of
52 # these files, you edit /etc/sysconfig/apache2
53
54
55
56 # Filesystem layout:
57 #
58 # /etc/apache2/
59 # |-- charset.conv . . . . . . . . . . . . for mod_auth_ldap
60 # |-- conf.d/
61 # | |-- apache2-manual.conf . . . . . . . conf that comes with apache2-doc
62 # | |-- mod_php4.conf . . . . . . . . . . (example) conf that comes with apache2-mod_php4
63 # | `-- ... . . . . . . . . . . . . . . . other configuration added by packages
64 # |-- default-server.conf
65 # |-- errors.conf
66 # |-- httpd.conf . . . . . . . . . . . . . top level configuration file
67 # |-- listen.conf
68 # |-- magic
69 # |-- mime.types -> ../mime.types
70 # |-- mod_autoindex-defaults.conf
71 # |-- mod_info.conf
72 # |-- mod_log_config.conf
73 # |-- mod_mime-defaults.conf
74 # |-- mod_perl-startup.pl
75 # |-- mod_status.conf
76 # |-- mod_userdir.conf
77 # |-- mod_usertrack.conf
78 # |-- server-tuning.conf
79 # |-- ssl-global.conf
80 # |-- ssl.crl/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Revocation Lists (CRL)
81 # |-- ssl.crt/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificates
82 # |-- ssl.csr/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Signing Requests
83 # |-- ssl.key/ . . . . . . . . . . . . . . PEM-encoded RSA Private Keys
84 # |-- ssl.prm/ . . . . . . . . . . . . . . public DSA Parameter Files
85 # |-- sysconfig.d/ . . . . . . . . . . . . files that are created from /etc/sysconfig/apache2
86 # | |-- global.conf
87 # | |-- include.conf
88 # | `-- loadmodule.conf
89 # |-- uid.conf
90 # `-- vhosts.d/ . . . . . . . . . . . . . . put your virtual host configuration (*.conf) here
91 # |-- vhost-ssl.template
92 # `-- vhost.template
93
94
95
96 ### Global Environment ######################################################
97 #
98 # The directives in this section affect the overall operation of Apache,
99 # such as the number of concurrent requests.
100
101 # run under this user/group id
102 Include /etc/apache2/uid.conf
103
104 # - how many server processes to start (server pool regulation)
105 # - usage of KeepAlive
106 Include /etc/apache2/server-tuning.conf
107
108 # ErrorLog: The location of the error log file.
109 # If you do not specify an ErrorLog directive within a <VirtualHost>
110 # container, error messages relating to that virtual host will be
111 # logged here. If you *do* define an error logfile for a <VirtualHost>
112 # container, that host's errors will be logged there and not here.
113 ErrorLog /var/log/apache2/error_log
114
115 # generated from APACHE_MODULES in /etc/sysconfig/apache2
116 Include /etc/apache2/sysconfig.d/loadmodule.conf
117
118 # IP addresses / ports to listen on
119 Include /etc/apache2/listen.conf
120
121 # predefined logging formats
122 Include /etc/apache2/mod_log_config.conf
123
124 # generated from global settings in /etc/sysconfig/apache2
125 Include /etc/apache2/sysconfig.d/global.conf
126
127 # optional mod_status, mod_info
128 Include /etc/apache2/mod_status.conf
129 Include /etc/apache2/mod_info.conf
130
131 # optional cookie-based user tracking
132 # read the documentation before using it!!
133 Include /etc/apache2/mod_usertrack.conf
134
135 # configuration of server-generated directory listings
136 Include /etc/apache2/mod_autoindex-defaults.conf
137
138 # associate MIME types with filename extensions
139 TypesConfig /etc/apache2/mime.types
140 DefaultType text/plain
141 Include /etc/apache2/mod_mime-defaults.conf
142
143 # set up (customizable) error responses
144 Include /etc/apache2/errors.conf
145
146 # global (server-wide) SSL configuration, that is not specific to
147 # any virtual host
148 Include /etc/apache2/ssl-global.conf
149
150 # forbid access to the entire filesystem by default
151 <Directory />
152 Options None
153 AllowOverride None
154 Order deny,allow
155 Deny from all
156 </Directory>
157
158 # use .htaccess files for overriding,
159 AccessFileName .htaccess
160 # and never show them
161 <Files ~ "^\.ht">
162 Order allow,deny
163 Deny from all
164 </Files>
165
166 # List of resources to look for when the client requests a directory
167 DirectoryIndex index.html index.php index.html.var
168
169 ### 'Main' server configuration #############################################
170 #
171 # The directives in this section set up the values used by the 'main'
172 # server, which responds to any requests that aren't handled by a
173 # <VirtualHost> definition. These values also provide defaults for
174 # any <VirtualHost> containers you may define later in the file.
175 #
176 # All of these directives may appear inside <VirtualHost> containers,
177 # in which case these default settings will be overridden for the
178 # virtual host being defined.
179 #
180 Include /etc/apache2/default-server.conf
181
182
183 # Another way to include your own files
184 #
185 # The file below is generated from /etc/sysconfig/apache2,
186 # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
187 # APACHE_CONF_INCLUDE_DIRS
188 Include /etc/apache2/sysconfig.d/include.conf
189
190
191 ### Virtual server configuration ############################################
192 #
193 # VirtualHost: If you want to maintain multiple domains/hostnames on your
194 # machine you can setup VirtualHost containers for them. Most configurations
195 # use only name-based virtual hosts so the server doesn't need to worry about
196 # IP addresses. This is indicated by the asterisks in the directives below.
197 #
198 # Please see the documentation at
199 # <URL:http://httpd.apache.org/docs-2.2/vhosts/>
200 # for further details before you try to setup virtual hosts.
201 #
202 # You may use the command line option '-S' to verify your virtual host
203 # configuration.
204 #
205 Include /etc/apache2/vhosts.d/*.conf
206
207
208 # Note: instead of adding your own configuration here, consider
209 # adding it in your own file (/etc/apache2/httpd.conf.local)
210 # putting its name into APACHE_CONF_INCLUDE_FILES in
211 # /etc/sysconfig/apache2 -- this will make system updates
212 # easier :)

Re: Dyndns farewall

Добавлено: 2011-10-31 14:40:19
vadim64
оффтоп: блин, ну попросил же теги юзать...

по теме: ls -alo /etc/apache2/vhosts.d/

Re: Dyndns farewall

Добавлено: 2011-10-31 14:45:42
kolya27
итого 28

Код: Выделить всё

drwxr-xr-x  2 root 4096 Окт 14 00:44 .
drwxr-xr-x 10 root 4096 Окт 31 14:19 ..
-rw-r--r--  1 root 9222 Сен  1 03:23 vhost-ssl.template
-rw-r--r--  1 root 4306 Сен  1 03:23 vhost.template

Re: Dyndns farewall

Добавлено: 2011-10-31 14:50:43
vadim64
да где ж он у вас...
cat -n /etc/apache2/default-server.conf

Re: Dyndns farewall

Добавлено: 2011-10-31 15:03:50
kolya27

Код: Выделить всё

[code]#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
# 

DocumentRoot "/srv/www/htdocs"

#
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
                           	# Possible values for the Options directive are "None", "All",
	# or any combination of:
	#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
	#
	# Note that "MultiViews" must be named *explicitly* --- "Options All"
	# doesn't give it to you.
	#
	# The Options directive is both complicated and important.  Please see
	# http://httpd.apache.org/docs-2.2/mod/core.html#options
	# for more information.
Options None
                           	# AllowOverride controls what directives may be placed in .htaccess files.
	# It can be "All", "None", or any combination of the keywords:
	#   Options FileInfo AuthConfig Limit
AllowOverride None
                           	# Controls who can get stuff from this server.
Order allow,deny
 Allow from all
</Directory>

# Aliases: aliases can be added as needed (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
</Directory>

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
 AllowOverride None
 Options +ExecCGI -Includes
 Order allow,deny
 Allow from all
</Directory>

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES 
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
                           	# Note that the name of the user directory ("public_html") cannot simply be
	# changed here, since it is a compile time setting. The apache package
	# would have to be rebuilt. You could work around by deleting
	# /usr/sbin/suexec, but then all scripts from the directories would be
	# executed with the UID of the webserver.
UserDir public_html
                           	# The actual configuration of the directory is in
	# /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
</IfModule>


# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
Include /etc/apache2/conf.d/*.conf

# The manual... if it is installed ('?' means it won't complain)
Include /etc/apache2/conf.d/apache2-manual?conf
[/code]

Re: Dyndns farewall

Добавлено: 2011-10-31 15:31:13
vadim64
ls -alo /etc/apache2/conf.d/

вы не помните как вы сервак настраивали? какие конфиги вы правили?

Re: Dyndns farewall

Добавлено: 2011-10-31 15:38:32
AGN
vadim64 писал(а):да где ж он у вас...
cat -n /etc/apache2/default-server.conf
118 # IP addresses / ports to listen on
119 Include /etc/apache2/listen.conf

У него не конфиг, а набор ссылок :)
vadim64 писал(а):ls -alo /etc/apache2/conf.d/

вы не помните как вы сервак настраивали? какие конфиги вы правили?
Судя по всему он его не настраивал...

Вообщем пока суть такова - нужно запустить апач на 80 порту... а дальше видно будет...
Порт прописан - смотри чуть выше... ;)

Re: Dyndns farewall

Добавлено: 2011-10-31 15:55:13
kolya27
Вообще то на 80порт у меня закрытый провайдером в меня значить не так поняли что я хочу сделать web-server сам настраивал

Re: Dyndns farewall

Добавлено: 2011-10-31 15:58:10
kolya27
причем здесь это Include /etc/apache2/listen.conf мне нужно настроить dyndns

Re: Dyndns farewall

Добавлено: 2011-10-31 15:59:14
kolya27
Вы меня не так понили ну все ровно всем спс

Re: Dyndns farewall

Добавлено: 2011-10-31 16:04:40
kolya27
Я знаю как порты добавлять мне порт нужно скрыть что бы я мог заходить по домену бес порта

Re: Dyndns farewall

Добавлено: 2011-10-31 16:05:57
kolya27
Точнее у меня dyndns настроен я просто хочу как то скрыть порт

Re: Dyndns farewall

Добавлено: 2011-10-31 17:49:25
AGN
Я же говорю - телепаты в отпуске... :)
Вопрос должен был звучать так:
У меня закрыт провайдером 80й порт, поэтому я настроил апач на 1024+ порт, как мне сделать редирект на dyndns.org?
Чувствуешь разницу с первым постом?

Re: Dyndns farewall

Добавлено: 2011-10-31 17:57:11
kolya27
Я просто не знал как это описать

Re: Dyndns farewall

Добавлено: 2011-10-31 17:58:04
kolya27
Так вы знаете как это сделать

Re: Dyndns farewall

Добавлено: 2011-10-31 18:12:38
AGN
Регистрируйся на no-ip.com оно умеет... там при создании хоста выбираешь порт-редирект.

пы.сы. если "ценно" именно то имя - можешь сослаться им на новое...
А что бы учетку "необновляемую" не потерли - создай второй хост на динднс и обновляй его параллельно...