Community discussions

MikroTik App
 
gokaran
just joined
Topic Author
Posts: 2
Joined: Wed Feb 29, 2012 9:58 am

port forwarding - Web services & Remote Desktop Please help

Wed Mar 07, 2012 2:30 pm

Hi All
I really need some assistance.
I am asking after trying many things but have failed.

I have the following.
RouterBoard 411U - Current Firmware 2.36
RouterOS 5.6
SoftwareID NFSF-7614

Modem = Sierra Wireless MC8792V

Operation
Modem makes a 3G connection - Successfull
On the Ethernet port we have a private network.
DHCp Disabled
DynDNS successful
RB - IP Address - 192.168.0.1
PC - IP address - 192.168.0.118


Now for what we do. At the client sites we use web services and remote desktop connection to the PC via the mikrotik.

I have tried all different scripts to enable prot forwading and allow ping replies but have miserably failed.

Can someone please help me and explian it to me like im a 6 year old.

Regards


/ip address add address=192.168.0.1/24 broadcast=192.168.0.255 disabled=no interface=ether1 network=192.168.0.0

/interface ppp-client set ppp-out1 disabled=no port=usb2 data-channel=4 info-channel=3 apn=internet max-mru=1500 max-mtu=1500 modem-init="" mrru=disabled null-modem=no password="" pin="" profile=default use-peer-dns=yes user="" dial-command=ATDT dial-on-demand=no add-default-route=yes allow=pap,chap,mschap1,mschap2

/ip firewall nat add action=masquerade chain=srcnat comment="" disabled=no

/ip dns set allow-remote-requests=yes

/port remote-access add port=usb2 protocol=rfc2217 tcp-port=10001 channel=3
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: port forwarding - Web services & Remote Desktop Please h

Fri Mar 09, 2012 12:17 am

Try with:
/ip firewall nat add chain=dstnat dst-port=(PUBLICPORT) action=dst-nat protocol=tcp to-address=(192.168.1.1-INTERNAL-IP-DESTINATION) to-port=(PORT-OF-INTERNAL-MACHINE)

To send public port 1234 to private port 80 on the machine 192.168.1.1:
/ip firewall nat add chain=dstnat dst-port=1234 action=dst-nat protocol=tcp to-address=192.168.1.1 to-port=80 
 
gokaran
just joined
Topic Author
Posts: 2
Joined: Wed Feb 29, 2012 9:58 am

Re: port forwarding - Web services & Remote Desktop Please h

Fri Mar 09, 2012 8:51 am

Thank you MArtin
so
for to-address=(192.168.1.1-INTERNAL-IP-DESTINATION) i can ise
to-address=(192.168.0.118) which is the ip of the machine or chould I use the IP of the mikrotik (192.168.0.1)

regards
Ramon
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: port forwarding - Web services & Remote Desktop Please h

Fri Mar 09, 2012 9:13 am

X.x.0.118.

Who is online

Users browsing this forum: davidvanrensburg and 26 guests