Broadcst traffic (x.x.x.255) that needs to go to specific IP

I have a setup with a Point of Sale (PoS) machine[192.168.1.11], a file server [192.168.1.10], and the mikrotik router. Before, the PoS and file server were both plugged directly into the modem on the same private address scheme and all was well. With the install of the router, they can no longer communicate with each other. What I see happening traffic wise is the PoS needs to send a signal to the file server, but instead of sending packets (udp) to 192.168.1.10, it broadcasts them to 192.168.1.255, and the file server is not responding. The file server is plugged into eth5 and the PoS is plugged into eth3 (small network). I have all the ether ports bridged and masquerading as the 192.168.1.0/24 network.

Assuming my client doesn’t want to pay for a switch to plug both the PoS and file server into before they plug into the mikrotik, is there a way for the file server to see and respond to the broadcast? The PoS machine can’t process payments or end of day reports without communicating with the file server, and putting in a switch for two devices when I have 4 available ports on the mikrotik seems silly.

Thanks in Advance.

-Nathan

your splitting the subject from the other topic : )

a bridge should not have any IP addresses on it. A bridge should not have any firewall rules on it. A bridge should not have any NAT rules on it. Make sure they are all clean of that bridge1 (or whatever you called it) and then try again.

Post the following pieces and we’ll tell you whats wrong.

/ip address export
/interface bridge export
/ip firewall export

Sam

here's my exports:

/ip address export

jun/13/2007 12:00:44 by RouterOS 2.9.43

software id = IEDG-3TT

/ ip address
add address=10.5.50.1/24 network=10.5.50.0 broadcast=10.5.50.255
interface=wlan1 comment="hotspot network" disabled=no
add address=192.168.1.254/24 network=192.168.1.0 broadcast=192.168.1.255
interface=bridge1 comment="Private Network 1" disabled=no

/interface bridge export

jun/13/2007 12:02:59 by RouterOS 2.9.43

software id = IEDG-3TT

/ interface bridge
add name="bridge1" mtu=1500 arp=proxy-arp stp=no priority=32768 ageing-time=5m
forward-delay=15s garbage-collection-interval=5s hello-time=2s
max-message-age=20s comment="" disabled=no
/ interface bridge port
add interface=ether2 bridge=bridge1 priority=128 path-cost=10 comment=""
disabled=no
add interface=ether3 bridge=bridge1 priority=128 path-cost=10 comment=""
disabled=no
add interface=ether4 bridge=bridge1 priority=128 path-cost=10 comment=""
disabled=no
add interface=ether5 bridge=bridge1 priority=128 path-cost=10 comment=""
disabled=no

/ip firewall export

jun/13/2007 12:03:39 by RouterOS 2.9.43

software id = IEDG-3TT

/ ip firewall nat
add chain=srcnat src-address=192.168.1.0/24 action=masquerade
comment="masquerade for Private 1 Network" disabled=no
add chain=srcnat src-address=10.5.50.0/24 action=masquerade
comment="masquerade hotspot network" disabled=no
add chain=dstnat protocol=tcp dst-port=7001 action=dst-nat
to-addresses=192.168.10.10 to-ports=7001 comment="Coffeeshop Manager"
disabled=yes
add chain=dstnat protocol=udp dst-port=7002 action=dst-nat
to-addresses=192.168.10.10 to-ports=7002 comment="Coffeeshop Manager"
disabled=yes
/ ip firewall mangle
/ ip firewall filter
add chain=forward in-interface=wlan1 out-interface=bridge1 action=drop
comment="" disabled=no
/ ip firewall service-port
set ftp ports=21 disabled=no
set tftp ports=69 disabled=no
set irc ports=6667 disabled=no
set h323 disabled=yes
set quake3 disabled=no
set gre disabled=yes
set pptp disabled=yes
/ ip firewall connection tracking
set enabled=yes tcp-syn-sent-timeout=5s tcp-syn-received-timeout=5s
tcp-established-timeout=1d tcp-fin-wait-timeout=10s
tcp-close-wait-timeout=10s tcp-last-ack-timeout=10s
tcp-time-wait-timeout=10s tcp-close-timeout=10s udp-timeout=10s
udp-stream-timeout=3m icmp-timeout=10s generic-timeout=10m
tcp-syncookie=no



As you can see, there are no rules on the bridge. All the bridge is doing is tying the 4 ports together as one LAN, instead of four LANs.

Based on this, why can't the two IP addresses of 192.168.1.10 and 192.168.1.11 not communicate via broadcast (192.168.1.255) with each other?

change the following:

/ ip firewall nat
add chain=srcnat src-address=192.168.1.0/24 action=masquerade
comment=“masquerade for Private 1 Network” disabled=no

add out-interface=wlan1 or similiar. currently anything with 192.168.1.0/24 on it is going to get natted, no matter what interface it comes in or out of.

How would I change it so only it’s traffic to the other machine on the network isn’t NATted? My concern is I don’t override the masquerade settings for the wired connections.

In essence I understand what I have to do, but not what the effect will be.

Swich work better than bridged lans ,BUY a swich !

of course they do, but he doesn’t want to spend the money and have a second device, understandable. a bridge is like a hub really.

That nat rule is currently natting things back and forth thru the bridge1 port, so just specify out-interface=wlan1 so that it’s only triggered when bridge1 isn’t the destination interface. You really only want to nat when you’re leaving wlan1 right ?

Sam

I had bad experience with bridges , mikrotik was crashed all the times ,I was bridge EOIP tunnels
,and 2 bridges port works well ,when I put 3 or more router reboot ,and hundred problems !

I need NAT when I leave WLan-1 and one of the eth ports, as I have a machine on the Lan side that needs internet access. Is there a way to allow NAT for the WLan and a specific ethernet port?

instead of natting the entire ethernet, nat the IP and port number. Your src-nat masq is for going outbound, so only use it when your leaving wlan1. Be as specific as you can for the specific nats, and then use the generic src-nat masq rule leaving wlan1 to catch the rest. The main probelm you have is that you are natting between bridge1 and bridge1, and telling it to make everything the routers address.

That makes sense. How do I do it? The manual is a bit confusing to me.

give me an example of the following IPs and I’ll help:

"I need NAT when I leave WLan-1 and one of the eth ports, as I have a machine on the Lan side that needs internet access. "

You mean internet traffic should hit 192.168.1.10 on port 1234 (dst-nat), or 192.168.1.10 should appear going out to the internet with a specific public IP (src-nat)? Give me a specific example of IPs and port numbers and I’ll write a rule for you.

Sam

Problem solved - It was never how it was traversing the router. The proprietary software needed to be accessed form te outside to re-synchronize with the home server. All I had to do was open ports.

Many thanks to everyone who chimed in trying to help.