- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: IP forwarding
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 07:22 AM
05-19-2005 07:22 AM
Please let me know more about ip forwarding.
Any help will be appriciated with points
Thanks and Regards
Rajesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 11:06 AM
05-19-2005 11:06 AM
SolutionIf for routing, then it's as simple as making sure that '/proc/sys/net/ipv4/ip_forward' contains a '1'. This is usually done via the 'sysctl' interface (which is configured via '/etc/sysctl.conf').
If you mean address translation, then I'll assume you're using a recent distribution and 'iptables'.
What you need to look at is the NAT table (Network Address Tralsnation) and the DNAT and SNAT jump types.
These rules live in the PREROUTING/OUTPUT and the POSTROUTING chains respectivly.
The key to adding these is the '--to' flag, i.e.
iptables -t nat -A PREROUTING -j DNAT -d 192.6.165.40 --to 192.6.165.119
This would force every request to 'www.hp.com' to one of the two IP's which respond to that name (NOTE: I use this only as an example, I do not suggest you try this!).
This can also modify the destination port, i.e.
iptables -t nat -A PREROUTING -j DNAT -p tcp --dport 80 d 192.6.165.40 --to 192.6.165.119:81
The SNAT rules work in the same manner.
These are discussed in the man page (man iptables) and also in great length in the IP Tables howto's, in particular the Netfilter Hack HOWTO, http://www.iptables.org/documentation/HOWTO//netfilter-hacking-HOWTO.txt .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 04:23 PM
05-19-2005 04:23 PM
Re: IP forwarding
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=871034
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=624078
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2005 12:16 AM
05-20-2005 12:16 AM
Re: IP forwarding
Machine acts as a router: datagrams received on one interface are forwarded to another one.
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2005 05:34 AM