NAT instance - port/IP forwarding

0

Hi guys, I have a question regarding to NAT instance.

Here is what I am trying to do:

I have a VPN tunnel setup between my home environment and AWS. I want to use NAT gateway to route traffic depending on IP address and port number.

In example: If traffic from my site to AWS comes to address 1.1.1.1 (public) on port 22 it should go to NAT instance and NAT instance should send it to 192.168.1.1 (private address).

If traffic from my site to AWS comes to address 1.1.1.1 (public) on port 23 it should go to NAT instance and NAT instance should send it to 192.168.1.2 (private address).

If traffic from my site to AWS comes to address 1.1.1.2 (public) on port 22 it should go to NAT instance and NAT instance should send it to 192.168.1.4 (private address).

Is this doable with a NAT instance? I do know that ports forwarding definitely is, how about IP?

1개 답변
1

Yes, you can do this; but not with the AWS managed NAT Gateway. This sort of thing can be done in Linux using iptables but you could also use a third-party virtual appliance from the AWS Marketplace.

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠