Hello there,
I have set a DNAT rule in my server's iptables for port 80 that forwards
all the incoming connections to the port 80 of another client on my LAN
with Apache web server ran.
When Apache is up, that's all right... but when I shutdown Apache,
external clients that try connecting to the port 80, immediately
receives the message "connection refused".
So, in order to avoid this answer, I've tried to correctly set an
iptables rule on my server:
# iptables -t nat -I PREROUTING -p icmp --icmp-type 3 -j DROP
but nothing changes.
So, I've tried:
# iptables -I OUTPUT -p icmp --icmp-type 3 -j DROP
and:
# iptables -I FORWARD -p icmp --icmp-type 3 -j DROP
and the same three rules above with --icmp-type "any"...
....but nothing changes.
The main idea is this:
Before:
client --icmp3--> server --icmp3--> external_client
After:
client --icmp3--> server|DROP| external_client
How can I do?
Thanks in advance,
Odin_Eidolon
|