<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
nate skrev:
<blockquote
 cite="mid:1518.65.102.144.193.1225749630.squirrel@webmail.linuxpowered.net"
 type="cite">
  <pre wrap="">Morten Sundstrøm wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Need help.

Im trying to forward all traffic to a public server(A) to another public
server(B) except traffic to port 22. Found this on google but cant get
it to work. Could someone help me please.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Is server (B) behind server (A) ? It's been a while but last
time I checked you couldn't do forwarding to a system unless that
system was behind the system that was doing the forwarding using
normal iptables.

What I do is use a specialized utility, there are two such utilities
that I know of that handle tcp forwarding in this manor:
rinetd and redir.

The only downside is the destination system will not see any of
the original IP addresses connecting, it will only see IPs of the
system doing the forwarding.

I don't think either rinetd or redir are available in the default
CentOS installation you probably have to find them elsewhere on
the net.

As for non-TCP stuff, I don't know off the top of my head.

nate

_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
  </pre>
</blockquote>
Server B is not behind server A, two different machines on different
public networks.<br>
<br>
/Morten<br>
</body>
</html>