View previous topic :: View next topic |
Author |
Message |
signature16 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Aug 2005 Posts: 79
|
Posted: Thu Nov 10, 2005 3:04 am Post subject: IP Tables |
|
|
when i try to add a rule to iptables it gives me an error.
Code: | pacificxlinux ~ # iptables -t nat -A PREROUTING -p tcp --dport 80 -i ${WAN} -j DNAT --to 192.168.1.1
Warning: wierd character in interface `-j' (No aliases, :, ! or *).
Bad argument `DNAT'
Try `iptables -h' or 'iptables --help' for more information.
|
I dont understand why that doesnt work. I copied it out of http://www.gentoo.org/doc/en/home-router-howto.xml
help appreciated ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pjp Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1154772887439692d88303b.jpg)
Joined: 16 Apr 2002 Posts: 20588
|
Posted: Thu Nov 10, 2005 5:05 am Post subject: |
|
|
Did you copy everything from that example? ${WAN} won't translate properly if you didn't do "export WAN=eth1" from the shell. What does echo $WAN output? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|