Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 17, 2008, 6:28 pm
rate this thread
Im trying to do the following:
// 1. send all port 80 traffic to the apache server at port 81 (works)
iptables -A PREROUTING -t nat -p tcp -d 0/0 --dport 80 -J DNAT --to-
// 2. allow a single user IP to get to the web now (also works)
iptables -I PREROUTING 1 -t nat -p tcp -s 10.10.10.2 --dport 80 -j
// 3. now the problem, I do the following to delete the client from
// but it (the browser) hangs trying to connect to whatever website I
iptables -D PREROUTING -t nat -p tcp -s 10.10.10.2 --dport 80 -j
Can someone tell me whats wrong with step 3 to get the redirect in
step 1 to
work again for the 10.10.10.2 client?
Thanks in advance
Re: help with PREROUTING --to-destination problem
Your first rule has source 0/0 either (your second rule will never match),
put the 2nd rule above your first, then it should work.
You can check it via iptable -t nat -L -n ans you'll see the matching
- » is there possible to attack host os from guest os running on the xen or vmare?
- — Next thread in » Linux Security
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security