just got a Mikrotik hex and iam really impressed with the capabilities of this small thing.
But i cant seem to figure out how to configure this for my use.
What i want is the following:
Ethernet1/Wan is connected to my firewall
Ethernet 1-4 should work like a switch
Ethernet5 should be connected to my webserver which runs on a diffrent network i want to reach this one from port 4088.
I hope what i wrote is somewhat understandable.
Thanks for any advice.
I’m no expert but, I thought disabling those ports would turn them off completely.
Also, you have set disable=yes to several important firewall rules.
thats not really a problem because the WAN port is conected to a lokal network.
The lokal network is already protected by a sophos firewall.
I only need the hex for portforwarding and access to the lokal network.
That was my intention because i could not get these port to work like a switch i thought it would be best to disable them.
Well, I missed the fact you’re using the device inside LAN.
To achieve what you want it would best to configure device from scratch like this:
Download winbox to your management PC
connect management PC to router using one of ether2-ether5, run winbox and click MAC address of router to connect to it
reset router with no defaults and reconnect by clicking MAC address
create bridge and add ports ether1-ether4 to it
set IP on bridge interface … either run DHCP client or set static IP address. In the later case add default route and set IP address of a DNS server (these settings are only necessary to perform ROS upgrades. If you intend to upgrade it by uploading package files from management PC you can skip setting route and DNS)
if you want router to sync time, configure (S)NTP client … you might need default route and DNS settings if you’re going to use some internet time server
set IP address on ether5 interface (select IP address from server’s subnet)
That came to my mind also so for exercise iam trying this approach too.
I still neet to get used to Mikrotik.
I configured a static route on my Sophos to route all requests for 192.168.214.xxx/24 to the Mikrotik hex on 10.38.25.31/16.
A tracert from 10.38.x.x/16 to 192.168.214.x shows the redirection to the Mikrotik hex works.
I can ping everything from the Mikrotik subnet but can’t ping the Computer from my Sophos network.
Do i need some kind of Masquarade on the Mikrotik?
Check firewall on the Computer … some OSes (Windows most notably) consider anything but it’s own subnet to be evil internet and block pings originating from other networks.
What is server’s default gateway IP address? You can only route traffic from Sophos network via MT is either server or its default gateway know to use RB as gateway towards Sophos network.
In the linked page, note the “routing subnet” between router1 and router2 … it is important and makes life of both routers easier. The thing is that in usual SOHO networks router1 runs a stateful firewall as well … and this firewall can trip if it doesn’t see traffic in both directions. Which happens if router2 “WAN” address is directly part of router1 “LAN” subnet.
The other thing is (potential) firewall running on router2 … so please post actual running config of mikrotik again (run /export file=anynameyouwish and copy-paste contents of that file).
The last error (routing) was probably not a show stopper for your particular problem.
Regarding your last change (adding NAT): it may or may not be necessary, but that entirely depends on settings of sophos router/firewall:
If you can configure sophos to use MT as gateway towards subnet 192.168.214.0/24 and configure its firewall not to track connections between both subnets, then no NAT on MT is necesary (well, this depends also on firewalls on end devices, they might trip on connections from the other subnet).
If you can setup sophos with static route but you can’t change firewall settings, then use of “routing subnet” between sophos and MT solves this problem, again no NAT needed.
if you can’t change any settings on sophos, then you’ll need to do both src-nat and dst-nat on MT. If this is the case and you don’t know what particular kind of NAT rules are needed, come back with good description of requirements. Beware that using NAT comes with constraints and limitations so you should avoid this type of solution if possible