I'm currently using a router with DD-WRT but would like to move to a box with Endian on it. I have two servers behind the router each of which need to be accessible over port 80 and a few other ports so I set up an IPTables rule to add another WAN IP address and forward that traffic to the second server:
/usr/sbin/ip addr add <External IP Address 2>/29 dev vlan1
/usr/sbin/iptables -t nat -I POSTROUTING 1 -p all -s <Internal IP Address 2> -j SNAT --to <External IP Address 2>
/usr/sbin/iptables -t nat -A PREROUTING -p tcp -d <External IP Address 2> --dport 80 -j DNAT --to-destination <Internal IP Address 2>:80
/usr/sbin/iptables -I FORWARD -p tcp -d <Internal IP Address 2> --dport 80 -j ACCEPT
Is this possible with Endian?
Thanks.