Solved

iptables

Posted on 2009-07-08
2
260 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
2 Comments
 
LVL 1

Expert Comment

by:dontdig
Comment Utility
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
Comment Utility
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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now