Re: Cambiar Encabezado de IP (Ayuda urgente x favor)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yo no hablo espanol ... can't even type the n~ ... but I see errors here:

CompuGenic wrote:
iptables -t nat -I PREROUTING -i eth0 -p tcp -m multiport --dport 7777,2106 -j DNAT --to 192.168.1.2

It's "--dports" not "--dport".

iptables -I INPUT -i eth0 -p tcp -m multiport 7777,2106 -j ACCEPT

Again, --dports is missing.

If it's the same packets you're wanting to accept, you're in the wrong chain. INPUT won't see these; the DNAT changes the destination to 192.168.1.2. This rule needs to be in FORWARD, not INPUT.

iptables -I FORWARD -i eth0 -d 192.168.1.2 -p tcp -m multiport \
  --dports 7777,2106 -j ACCEPT
--
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux