Community discussions

MikroTik App
 
User avatar
hendry
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Sat Jan 18, 2014 9:59 am
Location: Cornwall, UK
Contact:

Bridge WAN IP to local device?

Tue Aug 26, 2014 11:08 am

Hi there,

I would like a local device to have the WAN IP, but still have the other devices behind the router on a NAT.

Is that possible?

Current
122.7.219.77 -> 192.168.88.161 & 192.168.88.et al


Now I want 192.168.88.161 to basically be 122.7.219.77, but still have 192.168.88.* work.

Thanks!
 
plisken
Forum Guru
Forum Guru
Posts: 2511
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: Bridge WAN IP to local device?

Tue Aug 26, 2014 3:21 pm

IF you will connect the device on your WAN.

Has WAN configured a DHCP-server?

So yes

Make a bridge named br-wan
add ports the interface that now connect to the WAN
and another free ethernet interface.
Connect the device to this ethernet port.

Don't forget configured firewall NAT all what have configured as WAN must change to interface br-lan
Sorry for my bad englisch but i try to help you
 
User avatar
hendry
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Sat Jan 18, 2014 9:59 am
Location: Cornwall, UK
Contact:

Re: Bridge WAN IP to local device?

Tue Aug 26, 2014 5:52 pm

IF you will connect the device on your WAN.
Has WAN configured a DHCP-server?
Not it's bridge-local IIUC http://s.natalian.org/2014-08-26/140906 ... 64x748.png
add ports the interface that now connect to the WAN
and another free ethernet interface.
Connect the device to this ethernet port.
I can tell you it's on ether3... http://s.natalian.org/2014-08-26/140906 ... 64x748.png

Maybe I should just forward all ports somehow to 192.168.88.133 instead. But I keep hearing "NAT is bad" hence I wanted this situation.
 
User avatar
Kickoleg
Member Candidate
Member Candidate
Posts: 129
Joined: Tue Mar 11, 2014 3:13 pm
Location: Yverdon-les-Bains, Suisse

Re: Bridge WAN IP to local device?

Tue Aug 26, 2014 6:16 pm

if understand right you need netmap ?
try to use this :
ip firewall nat add chain=dstnat dst-address=122.7.219.77 action=netmap to-address=192.168.88.133
 
User avatar
hendry
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Sat Jan 18, 2014 9:59 am
Location: Cornwall, UK
Contact:

Re: Bridge WAN IP to local device?

Tue Aug 26, 2014 6:29 pm

ip firewall nat add chain=dstnat dst-address=122.7.219.77 action=netmap to-address=192.168.88.133

Perfect!! :D That works. But what happens if my WAN IP changes? 122.7.219.77 could change to 122.7.219.78 (this IIUC is my vlan1 address). Depends on my ISP's whim.
 
User avatar
MadEngineer
Member Candidate
Member Candidate
Posts: 141
Joined: Mon May 02, 2011 10:47 am
Location: New Zealand

Re: Bridge WAN IP to local device?

Tue Sep 16, 2014 12:53 pm