I have a Debian 6.0.7 x64 AWS EC2 server that I'm running a couple QEMU virtual machines on (don't ask.. long story).
I have some IPTables rules to NAT/Forward any traffic (on ports 8080 and 8081) from the AWS server to the VM internal IPs at 192.168.122.150/151 respectively.
When I restore my iptables rules (from an iptables dump), or I manually append an IPTables rule to a chain (FORWARD, for example), the source/destination subnet is getting automatically converted to a .ec2.internal hostname, and I can't seem to figure out why.
For example, the IPTables append command:
iptables -A FORWARD -s 0.0.0.0 -d 192.168.122.0/24 -j ACCEPT
Nets the following rule (notice the destination subnet was converted):
ACCEPT all -- ip-192-168-122-0.ec2.internal/24 anywhere
I've asked on the EC2 forums Here but with no response.. anyone have any thoughts on what could be causing this conversion?
The conversion occurs when I import using iptables-restore from a file as well. If I use a non-192.168.x.x subnet, the conversion isn't performed. I'm pretty certain this is breaking a few NAT/FORWARD rules that I have in place, but can't really figure out what's going on.
Thanks!