Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

my fix to get nat instance working #37

Closed
wants to merge 1 commit into from
Closed

Conversation

nelg
Copy link
Contributor

@nelg nelg commented May 29, 2021

Seems to work OK

@nelg nelg mentioned this pull request May 29, 2021
@nelg
Copy link
Contributor Author

nelg commented Jun 13, 2021

@int128 - this works for me, and does not work without it. Are you able to consider merging this?

@iamkhalidbashir
Copy link

Very importnat should merge

@aalimovs
Copy link

@int128 could you look at merging this please? or could you add maintainers please? thanks! 🙇

@arjitj2
Copy link

arjitj2 commented Jan 22, 2022

@int128 please add maintainers! This is an important PR to merge.


# switch the default route to eth1
ip route del default dev eth0
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Copy link
Owner

@int128 int128 Jan 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this breaks the fixed source IP feature. ENI of eth0 will be changed when the instance is recreated by Auto Scaling Group.
If you don't need the fixed source IP, this change would work.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this be merged any time soon?

@int128
Copy link
Owner

int128 commented Jan 28, 2022

By this pull request, the source IP address of NAT would fluctuate. I intentionally use eth1 to pin the source IP.

I think #42 resolved the issue.

@int128 int128 closed this Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants