Community discussions

MikroTik App
 
y315
just joined
Topic Author
Posts: 3
Joined: Mon May 31, 2004 6:31 pm

help me dynamic ip nat

Mon May 31, 2004 6:51 pm

How are you!
Please ask the dynamic IP in PPPOE in ADSL how to do the port counterfeit!For example my host IP is 192.168.0.1
I am in the inside net 192.168.0.22 do the FTP with the server of WEB!Pleases ask to how establishes!
Thank!
 
y315
just joined
Topic Author
Posts: 3
Joined: Mon May 31, 2004 6:31 pm

Tue Jun 01, 2004 3:32 pm

UP!
 
voatec
just joined
Posts: 13
Joined: Sat May 29, 2004 5:58 am
Location: Shanghai, PRC

Thu Jun 03, 2004 3:13 pm

Did u ever read Reference Manual?

Example
To add a destination NAT rule that gives access to the http server 192.168.0.22 on the local network via
external dynamic address, use the following command:
[admin@MikroTik] ip firewall dst−nat> add action=nat protocol=tcp \
\... dst−address=0.0.0.0/32:80 to−dst−address=192.168.0.22
[admin@MikroTik] ip firewall dst−nat> add action=nat protocol=tcp \
\... dst−address=0.0.0.0/32:20 to−dst−address=192.168.0.22
[admin@MikroTik] ip firewall dst−nat> add action=nat protocol=tcp \
\... dst−address=0.0.0.0/32:21 to−dst−address=192.168.0.22

[admin@MikroTik] ip firewall dst−nat> print
Flags: X − disabled, I − invalid, D − dynamic
0 src−address=0.0.0.0/0:0−65535 in−interface=all
dst−address=0.0.0.0/32:80 protocol=tcp icmp−options=any:any flow=""
connection="" content="" src−mac−address=00:00:00:00:00:00
limit−count=0 limit−burst=0 limit−time=0s action=nat
to−dst−address=192.168.0.22 to−dst−port=0−65535

1 src−address=0.0.0.0/0:0−65535 in−interface=all
dst−address=0.0.0.0/32:20 protocol=tcp icmp−options=any:any flow=""
connection="" content="" src−mac−address=00:00:00:00:00:00
limit−count=0 limit−burst=0 limit−time=0s action=nat
to−dst−address=192.168.0.22 to−dst−port=0−65535

2 src−address=0.0.0.0/0:0−65535 in−interface=all
dst−address=0.0.0.0/32:21 protocol=tcp icmp−options=any:any flow=""
connection="" content="" src−mac−address=00:00:00:00:00:00
limit−count=0 limit−burst=0 limit−time=0s action=nat
to−dst−address=192.168.0.22 to−dst−port=0−65535
[admin@MikroTik] ip firewall dst−nat>
 
voatec
just joined
Posts: 13
Joined: Sat May 29, 2004 5:58 am
Location: Shanghai, PRC

Fri Jun 04, 2004 4:02 am

[admin@MikroTik] ip firewall dst−nat> add action=nat protocol=tcp \
\... dst−address=0.0.0.0/32:80 to−dst−address=192.168.0.22
[admin@MikroTik] ip firewall dst−nat> add action=nat protocol=tcp \
\... dst−address=0.0.0.0/32:20 to−dst−address=192.168.0.22
[admin@MikroTik] ip firewall dst−nat> add action=nat protocol=tcp \
\... dst−address=0.0.0.0/32:21 to−dst−address=192.168.0.22
Sorry for my mistake, it should be 0.0.0.0/0, not 0.0.0.0/32
 
y315
just joined
Topic Author
Posts: 3
Joined: Mon May 31, 2004 6:31 pm

Fri Jun 04, 2004 4:56 am

Thank you!
But what such words my inside net interview any website return is all an inside net website!