Community discussions

MikroTik App
 
ftimmers
just joined
Topic Author
Posts: 7
Joined: Sat Nov 21, 2020 4:01 pm

Subnet fixed IP's - NAT one IP

Sat Apr 03, 2021 6:57 pm

Hello all,

I'm still a noob with networking and RouterOS. My provider has given me a subnet of fixed IP's: 155.###.###.64/29
Address of the Mikrotik is 155.###.###.65 (router gateway)
Broadcastaddress is 155.###.###.71
Addresses 155.###.###.66 - 155.###.###.70 are free to use

Now I have a router connected on port ether5 of the Mikrotik and that router is NATting to a LAN. That router is listening on WAN-address 155.###.###.69 and is acting as DHCP-server; that router is forwarding traffic on some ports to a host with a fixed IP-address on the LAN.
I think the Mikrotik is able to do that, but I don't know how. For example: I want to connect a switch to the Mikrotik on ether6 that listens to address 155.###.###.69, so I can port-forward traffic to a host in address range 192.168.0.0/24 on the LAN. Can someone please provide a script how to do that?

My current (very basic) setup:
# apr/03/2021 17:23:45 by RouterOS 6.48.1
# software id = SKLX-6AUD
#
# model = RB4011iGS+
# serial number = *************
/interface bridge
add mtu=1500 name=bridge_Publiek
/interface vlan
add interface=ether1 name=vlan6_Gateway vlan-id=6
/interface pppoe-client
add add-default-route=yes allow=pap disabled=no interface=vlan6_Gateway \
    max-mru=1492 max-mtu=1492 name=pppoe-out_FTTH password=************* \
    use-peer-dns=yes user=****************
/interface ethernet switch port
set 0 default-vlan-id=0
set 1 default-vlan-id=0
set 2 default-vlan-id=0
set 3 default-vlan-id=0
set 4 default-vlan-id=0
set 5 default-vlan-id=0
set 6 default-vlan-id=0
set 7 default-vlan-id=0
set 8 default-vlan-id=0
set 9 default-vlan-id=0
set 10 default-vlan-id=0
set 11 default-vlan-id=0
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge_Publiek interface=ether2
add bridge=bridge_Publiek interface=ether3
add bridge=bridge_Publiek interface=ether4
add bridge=bridge_Publiek interface=ether5
/ip address
add address=155.###.##.65/29 interface=bridge_Publiek network=155.###.###.64
/ip firewall service-port
set sip disabled=yes
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-autodetect=no time-zone-name=Europe/Amsterdam

Who is online

Users browsing this forum: jamesperks, mtkvvv and 50 guests