Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an Apache web server listening in 127.0.0.1:63280 eth0 has IP: 172.200.200.200.1, and try to connect from workstation IP 172.200.200.200

iptables -t nat -A PREROUTING -s 172.200.200.200.1 -p tcp -m tcp --dport 63280 
         -j DNAT --to-destination 127.0.0.1:63280

With tcpdump -i lo, I can't see any traffic to web server.

Is there any problem with NAT and loopback?

share|improve this question
    
172.200.200.200.1 is not a valid IP, maybe it's your problem... (or a typo in your question?) –  pataluc Jun 21 '13 at 12:31
    
sorry, it's a mistake, ip address is 172.200.200.1 –  JuanMa Jun 21 '13 at 13:04
add comment

1 Answer

up vote -1 down vote accepted

I think found the answer !!

Linux kernel drops all packets to dest 127.0.0.1 that not from 127.0.0.1

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.