Community discussions

MikroTik App
 
vladimirslk
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Wed Feb 10, 2010 2:03 am
Location: Estonia, Tallinn
Contact:

NAT 1:1 over 2 gateways

Mon Apr 02, 2012 12:19 am

Hi there,

need to forward IP with all ports to the customer.
I have next scenario:
From provider IP stack is pointed(routed) to external IP
internet->eth0(inet)-main-eth1(lan)->switch->eth0-pppoe(gateway)eth1->customer(pppoe)-static.1.1.1.1

How do I see it
main:
add ip address 10.10.10.10(that will be routed)
on eth0 and eth1 proxy-arp enable

/ip firewall nat add chain=dstnat dst-address=10.10.10.10 \
action=netmap to-addresses=eth0_IP_pppoe

/ip firewall nat add chain=srcnat src-address=eth0_IP_pppoe \
action=netmap to-addresses=10.10.10.10

pppoe(gateway) eth0 - proxy arp enable
eth0 -> add ip address 10.10.10.10

/ip firewall nat add chain=dstnat dst-address=10.10.10.10 \
action=netmap to-addresses=customer(pppoe)-static.1.1.1.1

/ip firewall nat add chain=srcnat src-address=eth0_IP_pppoe \
action=netmap to-addresses=customer(pppoe)-static.1.1.1.1

How does it like? :)
Thinking to jump off to zeroshell all gateways(main), like it more.. more flexible @my point of view, pppoe-d could stay on tik :)
 
estdata
Member Candidate
Member Candidate
Posts: 100
Joined: Mon Feb 20, 2012 9:05 pm
Contact:

Re: NAT 1:1 over 2 gateways

Mon Apr 02, 2012 7:52 am

Hello
What you want to say it. whether it is something you would like advice or help from here?
 
vladimirslk
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Wed Feb 10, 2010 2:03 am
Location: Estonia, Tallinn
Contact:

Re: NAT 1:1 over 2 gateways

Wed Apr 04, 2012 8:09 am

just checking configuration logic :)
 
sanya
just joined
Posts: 15
Joined: Sat Mar 31, 2012 8:44 pm
Location: Kiev UA

Re: NAT 1:1 over 2 gateways

Wed Apr 04, 2012 9:02 pm

just checking configuration logic :)
Sorry but previous post means that the logic is not understood (and I agree with it). Could you describe your design task?
 
vladimirslk
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Wed Feb 10, 2010 2:03 am
Location: Estonia, Tallinn
Contact:

Re: NAT 1:1 over 2 gateways

Mon Apr 16, 2012 12:06 am

just checking configuration logic :)
Sorry but previous post means that the logic is not understood (and I agree with it). Could you describe your design task?
we receive external IP from ISP. We need to make 1:1 translation over 2 routeros gateways(first one with dhcp-server) second one with pppoe (end user authentication with pppoe)...

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], bpwl, hendry, infabo and 86 guests