HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Port Address Translation -- plz help
Operating System - Linux
1826460
Members
3153
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
12-30-2005 04:25 AM
12-30-2005 04:25 AM
Hello Dear Gurus
I have configured the server(Gateway server) to do NAT.
Gateway server has two interfaces
external interface: a.b.c.d(public ip)
internal interface: 192.168.1.255
I did the following on Gateway
#echo 1 >/proc/sys/ipv4/ip_forward
and
#iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to a.b.c.d
Its working Perfect.
Now I want to know whats Port Address Translation is ? any example plz
Regards
Maaz
I have configured the server(Gateway server) to do NAT.
Gateway server has two interfaces
external interface: a.b.c.d(public ip)
internal interface: 192.168.1.255
I did the following on Gateway
#echo 1 >/proc/sys/ipv4/ip_forward
and
#iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to a.b.c.d
Its working Perfect.
Now I want to know whats Port Address Translation is ? any example plz
Regards
Maaz
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 05:32 AM
12-30-2005 05:32 AM
Solution
Port Address translation is when you redirect one port to another port or host:port, for example:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to-destination 192.168.0.14:8080
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to-destination 192.168.0.14:8080
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 07:11 AM
12-30-2005 07:11 AM
Re: Port Address Translation -- plz help
First of all, pleae check you internal interface ip address. 192.168.1.255 is broadcast address and you cannot use it for your interface.
Second, you can use port translation, for nating just one port from external to internet or from internet to external network. for example if you use iptables -t nat -A POSTROUTING -p tcp --dport 80 -o ppp0 -j SNAT --to a.b.c.d
your box just nat the traffics that are destinated to port 80 (web).
Second, you can use port translation, for nating just one port from external to internet or from internet to external network. for example if you use iptables -t nat -A POSTROUTING -p tcp --dport 80 -o ppp0 -j SNAT --to a.b.c.d
your box just nat the traffics that are destinated to port 80 (web).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2005 05:35 PM
12-31-2005 05:35 PM
Re: Port Address Translation -- plz help
Dear Ivan Ferreira, I m highly Thankfull to you for ur kind and prompt response
And Dear Alireza Many thanks to u also for the help.... and esp thanks for pointing the mistake. yes i know 192.168.1.255 is not a valid ip for host... and i have assigned 192.168.1.254, but mistakenly i have wrote 255 instead of 254
Thanks Forum
Maaz
And Dear Alireza Many thanks to u also for the help.... and esp thanks for pointing the mistake. yes i know 192.168.1.255 is not a valid ip for host... and i have assigned 192.168.1.254, but mistakenly i have wrote 255 instead of 254
Thanks Forum
Maaz
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP