Solved

iptables

Posted on 2009-07-08
2
266 Views
Last Modified: 2012-05-07
Hi,

I have some rules as below:
-A POSTROUTING -s 192.168.4.14 -p udp -m udp --dport 9112 -j SNAT --to-source 202.52.225.9
and
-A POSTROUTING -s 192.168.1.0/255.255.255.0 -j MASQUERADE

I will highly appreciate if someone can help me understand it.  I am not getting where this POSTROUTING chain does..
0
Comment
Question by:its_ns_04
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:dontdig
ID: 24803970
this is example of NAT first one belongs to Source Nat and second is for jump target MASQUERADE which is used for sharing internet from an public ip to local lan

though i dont know much about NAT hopefully some other will assist u better soon :-)
0
 
LVL 27

Accepted Solution

by:
Nopius earned 500 total points
ID: 24813923
OK.
> -A POSTROUTING -s 192.168.4.14 -p udp -m udp --dport 9112 -j SNAT --to-source 202.52.225.9

This rule allows LAN station 4.14 to access UDP destination port 9112 on any Internet host and it will be visible a 202.x.x.0, not as 192.x.x.14

> -A POSTROUTING -s 192.168.1.0/255.255.255.0 -j MASQUERAD

This rule probably provides internet access to all LAN users from 1.0 network.

0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question