RE: Port redirection with iptables

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

 



This should work:

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 26 -j REDIRECT
--to-port 25

	-Dan

> -----Original Message-----
> From: David Benigni [mailto:dbenigni@xxxxxxxxxx]
> Sent: July 19, 2003 9:16 AM
> To: shrike-list@xxxxxxxxxx
> Subject: Port redirection with iptables
> 
> 
> I'm hoping someone has one run across this before.  Currently I have a
> need to forward port 26 to port 25 for tcp only.  The machine does not
> function as a NAT box.  So, the machine has 1 ip address to the
> internet.  I still need to be able to connect to 25 as well.  
> I'm having
> no luck doing so.  I've playing around with the rules without complete
> success.  Has anyone come across a rule that might help me out?  TIA
> 
> David Benigni
> 
> 
> 
> -- 
> Shrike-list mailing list
> Shrike-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/shrike-list
> 


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux