Score:1

Forward traffic server to another server with iptable and domain

li flag

I want to forward all traffic from server1 to server2 with domain same:

sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination IpServer1
iptables -t nat -A PREROUTING -j DNAT --to-destination DomainServer2
iptables -t nat -A POSTROUTING -j MASQUERADE

but output: Bad IP address iptables -t nat

vidarlo avatar
ar flag
`iptables` doesn't do domains. It's - as implied by name - a IP filtering system. It doesn't know or care about DNS.
djdomi avatar
za flag
Does this answer your question? [I need a reverse proxy solution for SSH](https://serverfault.com/questions/226952/i-need-a-reverse-proxy-solution-for-ssh)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.