[CentOS] iptables

2010-09-16 Thread alexus
I'm trying to do some simple tcp port forwarding

[r...@wcmisdlin02 ~]# cat /proc/sys/net/ipv4/ip_forward
0
[r...@wcmisdlin02 ~]# /bin/echo 1 > /proc/sys/net/ipv4/ip_forward
[r...@wcmisdlin02 ~]# cat /proc/sys/net/ipv4/ip_forward
1
[r...@wcmisdlin02 ~]# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source   destination
RH-Firewall-1-INPUT  all  --  anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source   destination
RH-Firewall-1-INPUT  all  --  anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source   destination
ACCEPT all  --  anywhere anywhere
ACCEPT icmp --  anywhere anywhereicmp any
ACCEPT esp  --  anywhere anywhere
ACCEPT ah   --  anywhere anywhere
ACCEPT udp  --  anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp  --  anywhere anywhereudp dpt:ipp
ACCEPT tcp  --  anywhere anywheretcp dpt:ipp
ACCEPT all  --  anywhere anywherestate
RELATED,ESTABLISHED
ACCEPT tcp  --  anywhere anywherestate NEW
tcp dpt:mysql
ACCEPT tcp  --  anywhere anywherestate NEW
tcp dpt:ssh
ACCEPT tcp  --  anywhere anywherestate NEW
tcp dpt:http
ACCEPT tcp  --  anywhere anywherestate NEW
tcp dpt:ftp
ACCEPT tcp  --  anywhere anywherestate NEW
tcp dpt:https
REJECT all  --  anywhere anywhere
reject-with icmp-host-prohibited
[r...@wcmisdlin02 ~]# iptables --table nat --append PREROUTING --proto
tcp --dport 80 --jump DNAT --to 10.52.208.223:80
[r...@wcmisdlin02 ~]# iptables --table nat --list PREROUTING
Chain PREROUTING (policy ACCEPT)
target prot opt source   destination
DNAT   tcp  --  anywhere anywheretcp
dpt:http to:10.52.208.223:80
[r...@wcmisdlin02 ~]# curl --verbose http://10.52.208.221:80
* About to connect() to 10.52.208.221 port 80
*   Trying 10.52.208.221... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
[r...@wcmisdlin02 ~]#

-- 
http://alexus.org/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iptables

2010-09-16 Thread alexus
On Thu, Sep 16, 2010 at 4:18 PM,   wrote:
> alexus wrote:
>> I'm trying to do some simple tcp port forwarding
>>
> 
>> [r...@wcmisdlin02 ~]# iptables --table nat --append PREROUTING --proto
>> tcp --dport 80 --jump DNAT --to 10.52.208.223:80
>                                       ^^^
>> [r...@wcmisdlin02 ~]# curl --verbose http://10.52.208.221:80
>                                                        ^^^
>> * About to connect() to 10.52.208.221 port 80
>> *   Trying 10.52.208.221... Connection refused
>> * couldn't connect to host
>
> Could this be a problem?
>
>          mark
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

iptables contains a rule where to forward traffic
and i'm testing against my local machine and not a remote
how is that a problem?

if i'll be hitting remote machine then i dont really need a redirect
-- 
http://alexus.org/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iptables

2010-09-20 Thread alexus
.223 has port 80 open and it accepts connection
when i'm connecting to .221 and that suppose to foward it to .223 then
it doesn't work

On Fri, Sep 17, 2010 at 12:38 PM, Robert Spangler
 wrote:
> On Thursday 16 September 2010 16:03, alexus wrote:
>
>>  I'm trying to do some simple tcp port forwarding
>
> The first thing you need to do is drop the RH-firewall BS and create a new
> firewall rule set setup for your needs.  If you don't know how to setup a
> firewall then I would suggest you get one of those GUI programs that can do
> this for you.
>
>>  [r...@wcmisdlin02 ~]# curl --verbose http://10.52.208.221:80
>>  * About to connect() to 10.52.208.221 port 80
>>  *   Trying 10.52.208.221... Connection refused
>>  * couldn't connect to host
>>  * Closing connection #0
>>  curl: (7) couldn't connect to host
>>  [r...@wcmisdlin02 ~]#
>
> Looks like this host doesn't accept port 80 connections.
>
>
> --
>
> Regards
> Robert
>
> Linux
> The adventure of a life time.
>
> Linux User #296285
> Get Counted
> http://counter.li.org/
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
http://alexus.org/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cannot print on Centos 6.7 [***NOT*** SOLVED]

2015-08-24 Thread alexus
perhaps you might want to include more information other then nothing...

On Mon, Aug 24, 2015 at 11:34 AM, Gilbert Sebenste
 wrote:
> On Fri, 21 Aug 2015, Gilbert Sebenste wrote:
>
>> On Fri, 21 Aug 2015, Kay Schenk wrote:
>>
>> Have you tried different printer drivers other than the one that's
>> "recommended"?
>>
>>
>> I just found the problem. The firmware on the printer was from January 20,
>> 2011.
>
>
> And this morning, it printed one piece of a document, and then crashed, just
> like before.
>
> Sigh. Back to square one.
>
> Gilbert
>
> ***
> Gilbert Sebenste
> (My opinions only!)  **
> ***
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos



-- 
http://alexus.org/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos