Community discussions

MikroTik App
 
chippers
newbie
Topic Author
Posts: 28
Joined: Tue Apr 02, 2013 7:45 am

internet IP on server through RB751G

Thu Jun 27, 2013 2:06 pm

Hi,
we have a router using PPPOE and 5 extra wan addresses, everything is working (I can ping the IP addresses on the router)

Want to put one of the WAN addresses directly onto a server and plug the server into port 5 so it is completely exposed to the internet without NAT etc.

How to do this?

thanks
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: internet IP on server through RB751G

Thu Jun 27, 2013 3:30 pm

You should create 2 bridges.

A local-lan bridge and a wan bridge, and group the desired ports on the correct bridge.

If you are using ether1 as your gateway (for your pppoe client) group these together with ether5 into your wan bride.
And group the rest into your local-lan bridge
Finally connect your pppoe client on the wan bridge.

ros code

/interface bridge
add name=local-bridge
add name=wan
/interface bridge port
/add bridge=local-bridge interface=ether2
/add bridge=local-bridge interface=ether3
/add bridge=local-bridge interface=ether4
/add bridge=wan interface=ether1
/add bridge=wan interface=ether5

/interface pppoe-client
set <pppoe-client name> interface=wan
Then give your exposed server a dedicated IP address given to you by your ISP (or use DHCP if that is possible)

If DHCP is not available, you should also configure your wan bridge with your desired IP address.
 
chippers
newbie
Topic Author
Posts: 28
Joined: Tue Apr 02, 2013 7:45 am

Re: internet IP on server through RB751G

Sat Jun 29, 2013 2:40 am

Thanks for the answer, this didnt quite work as expected but I was able to do something very similar to get it working.


- created a wan or dmz bridge
- added ports 4 and 5 to the wan bridge
- assigned an internet IP out of the 5 spare to the wan bridge to act as a gateway (for ports 4 and 5)
- assigned internet IP's to the 2 servers required using the internet IP on the bridge as the gateway

Lastly, I added a source entry to my NAT rule (10.10.10.0/24) to ensure only the local lan was NATted, not the servers.

hope this helps someone else

-Matt
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: internet IP on server through RB751G

Sat Jun 29, 2013 9:26 am

Where is your ISP connection on your Routerboard?
Can u post your export compact

Who is online

Users browsing this forum: escape214 and 18 guests