Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a linksys router with dd-wrt installed on it. I have tried script after script people have suggested to allow for multiple static ips from my ISP (small business internet). I can not find one that actually works here is an example script for the second of 5 static ips that got me the closest. This will at least direct the external ip (68.115.xx.xxx) from an internal connection to the machine however it still doesn't work from an external connection.

/usr/sbin/ip addr add 68.115.xx.xxx/29 dev vlan1
/usr/sbin/iptables -I FORWARD -d -j ACCEPT
/usr/sbin/iptables -t nat -I PREROUTING 1 -p all -d 68.115.xx.xxx -j DNAT --to
/usr/sbin/iptables -t nat -I POSTROUTING 1 -p all -s -j SNAT --to 68.115.xx.xxx
share|improve this question
Just to check the basics: your ISP has provide you with multiple ID adresses? –  DutchUncle Feb 25 '11 at 22:33
Yes I have business internet with a block of 5 ip's –  dko Feb 26 '11 at 4:38

Your Answer


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

Browse other questions tagged or ask your own question.