Right now i have configured 2 interfaces on my Amazon EC2 instance and i've opened 7999-8999 ports from web interface:

WAN Interface
eth0      Link encap:Ethernet  HWaddr 12:31:38:04:C0:75
          inet addr:  Bcast:  Mask:
VPN Interface
ham1      Link encap:Ethernet  HWaddr 00:23:C3:E1:07:8E
          inet addr:  Bcast:  Mask:
As far as i've read Amazon does NAT 1:1, converting my real ExternalIP into

I can ping in internet and also in, and i'm interested how can i configure iptables in order to translate:

ExternalIP:8888 into

Please help me a bit cause i've tried different configurations and none of them worked until now.

For the start can you guys please tell me if i would need to use the ExternalIP in my iptables or ?

Thanks a lot and happy holidays!