LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2009, 07:13 PM   #1
yzhong
Member
 
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Rep: Reputation: 16
IP forwarding /NAT doesn't work after system update


System is redhat 5.x
I used the following 2 rules in iptables to forwarding some packages

iptables -t nat -A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination 192.168.0.244:8000

iptables -t nat -A POSTROUTING -p tcp --dport 8000 -j MASQUERADE

It works perfectly before, the kernel was 2.6.18-92.1.22.el5.

After we did a update, the kernel now is 2.6.18-128.7.1.el5.
and the forwarding is stop.

I just wondering where can I get some debug information. I checked /var/log/message, dmesg ... seems nothing there.

Could anyone give me some clue, thanks in advance.
 
Old 10-23-2009, 11:55 AM   #2
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
Quote:
Originally Posted by yzhong View Post
System is redhat 5.x
I used the following 2 rules in iptables to forwarding some packages

iptables -t nat -A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination 192.168.0.244:8000

iptables -t nat -A POSTROUTING -p tcp --dport 8000 -j MASQUERADE

It works perfectly before, the kernel was 2.6.18-92.1.22.el5.

After we did a update, the kernel now is 2.6.18-128.7.1.el5.
and the forwarding is stop.

I just wondering where can I get some debug information. I checked /var/log/message, dmesg ... seems nothing there.

Could anyone give me some clue, thanks in advance.
Did you check ip forwarding settings in /etc/sysctl.conf , it should set to...

ipforward=1 , if not change it to 1... and reboot the box.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NAT port forwarding mrittman Linux - Newbie 3 09-28-2009 06:31 PM
NAT Forwarding not working. MikeyCarter Linux - Networking 2 03-04-2009 09:35 AM
X11 forwarding + NAT technopasta Linux - Networking 9 05-28-2007 06:49 AM
NAT and Port Forwarding aq_mishu Linux - Networking 2 09-16-2005 07:58 AM
NAT forwarding kermitthefrog91 Linux - Networking 4 08-04-2005 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration