RE: [CentOS] BQ/CentOS port forwarding

2007-06-20 Thread Charles Sliger
Here is the corresponding command from my iptables script:

EXTDEV=eth1
EXTIP=69.54.130.16
SMTPIP=10.10.10.12
$IPT -t nat -A PREROUTING -i $EXTDEV -p tcp -d $EXTIP --dport 25 \
 -j DNAT --to-destination $SMTPIP

-chaz

Charles L. Sliger,  Information Systems Engineer
[EMAIL PROTECTED]  {Yahoo: chaz_sliger}  {Google: chaz.sliger}

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Richard Veale
 Sent: Friday, June 15, 2007 1:38 PM
 To: 'CentOS mailing list'
 Subject: RE: [CentOS] BQ/CentOS port forwarding
 
 I tried to set up IPtables for it using:
 
 iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 3389 -j DNAT \ --to
 10.0.0.100
 
 but the 'to' statement does not seem to work on my CentOS box and every
 time
 I do anything to IPtables my DNS blows up.
 
 Richard
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf
 Of Richard Veale
 Sent: Friday, June 15, 2007 8:32 AM
 To: 'CentOS mailing list'
 Subject: RE: [CentOS] BQ/CentOS port forwarding
 
 Thanks Robert,
 I have a Terminal Services Server that will be behind the inside
 interface,
 I need to forward hits on port 3389 eth1 to an IP address behind eth0.
 
 Richard Veale
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf
 Of Robert Spangler
 Sent: Thursday, June 14, 2007 10:31 PM
 To: CentOS mailing list
 Subject: Re: [CentOS] BQ/CentOs port forwarding
 
 On Thu June 14 2007 18:06, Richard Veale wrote:
 
   Just bought a new BQ/CentOS box with full NuOnce load (Linux
  2.6.9-55.ELsmp, gcc 3.4.6, Red Hat 3.4.6-8, Apache 2.0.52, BQ 5102r), to
  replace my old Qube 3 pro, I have NAT setup (eth0 = inside, eth1 =
 outside)
  but need to get port forwarding going. What is the best way?
 
 Well it depends on what you are trying to forward  But to turn on forward
 in
 
 general use this;
 
 /bin/echo 1 /proc/sys/net/ipv4/ip_forward
 
 
 --
 
 Regards
 Robert
 
 Smile... it increases your face value!
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] iptables question

2007-06-20 Thread Charles Sliger
I believe that iptables is different than freebsd's ipfw.
I don't think the rules would be expressed the same way.
Am I wrong?
-chaz
Charles L. Sliger,  Information Systems Engineer
[EMAIL PROTECTED]  {Yahoo: chaz_sliger}  {Google: chaz.sliger}
 
 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of ann kok
 Sent: Wednesday, June 20, 2007 7:46 AM
 To: centos@centos.org
 Subject: [CentOS] iptables question
 
 Hi all
 
 Can iptables have log and deny rule together?
 if no. how can I make a deny rule and log rule
 and the log rule can limit the log entry eg: 200
 if yes, how can I make it
 
 I am using freebsd ipfw.
 eg: ipfw add 22 deny log all from any to x.x.x.x
 
 thank you
 
 
 
 __
 __
 Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
 news, photos  more.
 http://mobile.yahoo.com/go?refer=1GNXIC
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos