Community discussions

MikroTik App
 
CREATIVELINK
newbie
Topic Author
Posts: 31
Joined: Thu Nov 30, 2006 1:32 pm

Web Server Problem

Sat Apr 21, 2007 3:55 pm

Dear colleque

i have this NAT Rule:
[admin@MikroTik] ip firewall nat> add action=dst-nat chain=dstnat \
dst-address=10.0.0.216/32 to-addresses=192.168.0.4


put when i open explorer and try this Public IP i get this error

While trying to retrieve the URL: http://xx.xx.xx.xx/

The following error was encountered:

* Connection Failed

The system returned:

(111) Connection refused

The remote host or network may be down. Please try the request again.




---------------------------


Please Advice
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 884
Joined: Mon Apr 10, 2006 3:38 am

Re: Web Server Problem

Sat Apr 21, 2007 4:13 pm

-----
yup...
i hope this okay..
add action=dst-nat chain=dstnat dst-address=10.0.0.216/32 port=80 protocol=tcp to-addresses=192.168.0.4 to-ports=0-65535
assumsy your public ip is 10.0.0.216

regards
Hasbullah.com
----
 
CREATIVELINK
newbie
Topic Author
Posts: 31
Joined: Thu Nov 30, 2006 1:32 pm

Re: Web Server Problem

Mon Apr 23, 2007 7:49 am

-----
yup...
i hope this okay..
add action=dst-nat chain=dstnat dst-address=10.0.0.216/32 port=80 protocol=tcp to-addresses=192.168.0.4 to-ports=0-65535
assumsy your public ip is 10.0.0.216

regards
Hasbullah.com
----
Still not working man same error
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 884
Joined: Mon Apr 10, 2006 3:38 am

Re: Web Server Problem

Mon Apr 23, 2007 8:04 am

-----
yup...
i hope this okay..
add action=dst-nat chain=dstnat dst-address=10.0.0.216/32 port=80 protocol=tcp to-addresses=192.168.0.4 to-ports=0-65535
assumsy your public ip is 10.0.0.216

regards
Hasbullah.com
----
Still not working man same error
----
so, sorry man
that code is working for my apache web server... :wink:
maybe anyone else have idea, please.....

regards
Hasbullah.com
----
 
User avatar
awacenter
Member Candidate
Member Candidate
Posts: 202
Joined: Thu Dec 09, 2004 12:58 pm
Location: Castellón
Contact:

Mon Apr 23, 2007 11:48 am

Try this where IP x.x.x.x is your public IP and ether1 is the public interface
add chain=dstnat in-interface=ether1 dst-address=x.x.x.x protocol=tcp \
dst-port=80 action=dst-nat to-addresses=192.168.0.4 to-ports=80 \
comment="Redireccion http" disabled=no
 
CREATIVELINK
newbie
Topic Author
Posts: 31
Joined: Thu Nov 30, 2006 1:32 pm

Mon Apr 23, 2007 12:52 pm

Try this where IP x.x.x.x is your public IP and ether1 is the public interface
add chain=dstnat in-interface=ether1 dst-address=x.x.x.x protocol=tcp \
dst-port=80 action=dst-nat to-addresses=192.168.0.4 to-ports=80 \
comment="Redireccion http" disabled=no
i did try it man not working also maybe i have something block this rules or ovveride it
!!!!