Grokbase
Topics Posts Groups | in
x
[ help ]

Robert Spangler (m...@zoominternet.net)

Profile | Posts (1)

User Information

Display Name:Robert Spangler
Partial Email Address:m...@zoominternet.net
Posts:
1 total
1 in CentOS

5 Most Recent

1) Robert Spangler Re: [CentOS] ls network address traslation different in centos?
| +1 vote
Shorthand I find the best. Thnx for the clarification on this.
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Friday 02 January 2009 00:16, Kenneth Burgener wrote:

>  On 1/1/2009 8:13 PM, Robert Spangler wrote:
>  > Your rules are in need of help.
> > First off I am not even sure what you are doing will work, i.e.;
>  >
>  > --append or --table
>  >
>  > These are written as '-A' and '-t'
>
>  --append and --table are legal syntax...
>
>  # man iptables
>
>  -t, --table table
> This option specifies the packet matching table which the command
>  should operate on.  If the...
>
>  -A, --append chain rule-specification
> Append one or more rules to the end of the selected chain. When the
>  source and/or destination...

Shorthand I find the best.
Thnx for the clarification on this.


--

Regards
Robert

Linux User #296285
http://counter.li.org
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
2) Robert Spangler Re: [CentOS] ls network address traslation different in centos?
| +1 vote
Nope. Your rules are in need of help. First off I am not even sure what you are doing will work,...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Wednesday 31 December 2008 16:05, chloe K wrote:

> ls the network address traslation in centos5.2 different?

Nope.

> I disable the default iptable rule and use the following commands but I
> can't connect http://public:8080 from outside to this host 192.168.0.10
> port 80
>
>    eth1 is public address
>    eth0 is private address 192.168.0.1
>
>    iptables -F -t nat
> iptables --table nat --append POSTROUTING --out-interface eth1 -j
> MASQUERADE iptables --append FORWARD --in-interface eth0 -j ACCEPT
> iptables -t nat -A PREROUTING -p tcp --dport 8080 -i eth1 -j DNAT --to
> 192.168.0.10:80

Your rules are in need of help.
First off  I am not even sure what you are doing will work, i.e.;

--append or --table

These are written as '-A' and '-t'

Try these;

iptables -F -t nat
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
# !!! Following line is wrapped !!!
iptables -t nat -A PREROUTING -p tcp --dport 8080 -i eth1 -j DNAT
--to-destination 192.168.0.10:80
iptables -A FORWARD -i eth0 -j ACCEPT

You could and should tighten these rules up.  You should look into Stateful 
packet inspection for your firewall.  If you are looking to learn how to 
write your own rules use the following;

http://iptables.rlworkman.net/chunkyhtml/index.html


--

Regards
Robert

Linux User #296285
http://counter.li.org
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
3) Robert Spangler Re: [CentOS] iptables questionson CentOS
| +1 vote
I take it the firewall has 2 interfaces WAN and LAN. Without knowing how you have things setup now...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Thursday 04 December 2008 04:21, Indunil Jayasooriya wrote:

>  Hi,
>
> I know these are a few iptbales questions. NOT CentOS, anyway, I am
>  running a firewall on centos 5.x.
>
>  If you can response, it would be fine.
>
>
> I want to add a SNAT rule for one user in LAN to access one particular
>  destination on the internet.
>
>  Let's say www.centos.org
>
>  I added the below rule. But . it does NOT work
> Pls assume 1.2.3.4 is the real ip of the firewall.
>  ip address 192.168.101.230 is the client PC
>
> iptables -t nat -A POSTROUTING -o eth0 -s 192.168.101.230 -j SNAT
>  --to-source 1.2.3.4 -d www.centos.org
>
>  Any idea to achieve it?
>
>  And Also,
>
>  the below rule excludes 1 ip. it works fine.
>
> iptables -t nat -A PREROUTING -p tcp -m multiport -s ! 192.168.1.9
> --destination-port 80,465,995 -j DNAT --to-destination :3128
>
>   I want to exclude about 4 or 5 ips.
>
> let's say 192.168.1.11, 192.168.1.19, 192.168.1.20,192.168.1.25
>
>   Is there a way to do it?
>
>  Hope to hear from you.

I take it the firewall has 2 interfaces WAN and LAN.  Without knowing how you 
have things setup now you could simple add the following:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -i <LAN> -s 192.168.1.11 -j DROP
iptables -i <LAN> -s 192.168.1.19 -j DROP
iptables -i <LAN> -s 192.168.1.25 -j DROP

Should any of these ip's need access to the firewall then you nedd to place
those rules before these.


--

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
http://counter.li.org
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
4) Robert Spangler Re: [CentOS] iptables-save: INPUT DROP [26:8260]
| +1 vote
It is packetand byte counters. Not sure...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tuesday 02 December 2008 17:58, Alexander Farber wrote:

> why does iptables-save print 2 numbers in square brackets?
> Is it used for anything? Is it number of inspected packets
>  (and what's the other number then)?

It is packetand  byte counters.

>  And what does *filter mean?

Not sure


--

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
http://counter.li.org
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
5) Robert Spangler Re: [CentOS] looking for good web based DNS script to check nameservers
| +1 vote
Try this one; http://www.checkdns.net/quickcheckdomainf.aspx TTL's are your choice. Who better then...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Friday 10 October 2008 09:54, Rudi Ahlers wrote:

>  Hi all,
>
> I'm looking for a good web based script / website that can do a full
>  ananlysis on DNS & namservers.
>
> Can someone please recommend something good to use?

Try this one;

http://www.checkdns.net/quickcheckdomainf.aspx

> And if possible, if it could show any errors, or even make suggestions
> (like "TTL is too high", or " you don't have an MX, please ad one",
>  etc)

TTL's are your choice.  Who better then yourself can say if a TTL is to high 
or to low?  Not every domain has a MX record if they don't have mail so again 
this is up to you.


--

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
http://counter.li.org
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos

spacer
Profile | Posts (1)
Home > People > Robert Spangler