migration_temporary_redirect
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
migration_temporary_redirect [2015/04/07 16:01] – [Temporary redirect to other host] admin | migration_temporary_redirect [2015/04/07 16:06] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
~~TOC~~ | ~~TOC~~ | ||
- | =====Temporary redirect to other host===== | + | =====Temporary redirect |
- | I've used the steps below to temporary redirect traffic during migration to another host. Tested on CentOS 6.x | + | I've used the steps below to temporary redirect |
- | * Enable | + | * Configure the kernel to allow forwarding:< |
- | * Forward port:< | + | * Route traffic to destination:< |
- | * Allow forwarding: < | + | * Allow forwarding: < |
iptables -A FORWARD -p tcp -d 2.2.2.2 --dport 443 -j ACCEPT</ | iptables -A FORWARD -p tcp -d 2.2.2.2 --dport 443 -j ACCEPT</ | ||
* Masquerade outgoing connection:< | * Masquerade outgoing connection:< | ||
Line 12: | Line 12: | ||
* Delete rules: | * Delete rules: | ||
* Find line numbers: < | * Find line numbers: < | ||
- | * Delete rules using line number:< | + | * Delete rules using line number:< |
+ | iptables -D FORWARD <num></ |
migration_temporary_redirect.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1