Article 5E51B unable to resolve host, after iptables masquerade

unable to resolve host, after iptables masquerade

by
lordki
from LinuxQuestions.org on (#5E51B)
Greatings,
I have been working with this problem too time...
Im redirecting all my conextions to diferent interface with iptables.

sudo iptables -t nat -A PREROUTING -p tcp -m tcp ! --dport 22 -j DNAT --to-destination 10.0.3.15
sudo iptables -t nat -A POSTROUTING -j MASQUERADE

Im been working fine, but when im make this rules to iptables, appears this error. i cant do nothing.

unable to resolve host enrique-VirtualBox: Name or service not know.

My /etc/hosts:
127.0.0.1 localhost
127.0.1.1 enrique-VirtualBoxlatest?d=yIl2AUoC8zA latest?i=lI6KwSfaous:Rv0dR8Lj93Q:F7zBnMy latest?i=lI6KwSfaous:Rv0dR8Lj93Q:V_sGLiP latest?d=qj6IDK7rITs latest?i=lI6KwSfaous:Rv0dR8Lj93Q:gIN9vFwlI6KwSfaous
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments