LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IRC Nat (https://www.linuxquestions.org/questions/linux-newbie-8/irc-nat-692000/)

keyboard1973 12-21-2008 02:33 AM

IRC Nat
 
Hello,

I have mirc installed under wine on one of my centos boxes on a lan setup. I also have one box acting as a nat with a switch. In the past I was able to forward out port 113 on my old nat/router, mirc worked. Now I have tried several things under iptables on the linux nat no go. Could someone help me or point me in the right direction...

I believe I have the proper modules loaded,

both on the nat box and the mirc client box.

ip_nat 20973 2 ipt_MASQUERADE,iptable_nat
ip_conntrack 53025 6 ip_conntrack_netbios_ns,ip_conntrack_ftp,xt_state,ipt_MASQUERADE,iptable_nat,ip_nat
nfnetlink 10713 2 ip_nat,ip_conntrack

As for iptables I am trying to configure the proper ports on the nat box.


These are my rules I have multiple rule for 6667 and 113 because I was trying several things to get this issue resolved.

*filter
:INPUT ACCEPT [283:43702]
:FORWARD ACCEPT [2968:464387]
:OUTPUT ACCEPT [139:14958]
:TRUSTED - [0:0]
-A INPUT -i eth0 -p tcp -m tcp --dport 113 -j ACCEPT
-A INPUT -i eth0 -p tcp -m state --state RELATED -j ACCEPT
-A FORWARD -p tcp -m tcp --dport 6667 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 113 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 6667 -j ACCEPT
-A TRUSTED -i eth0 -p tcp -m tcp --sport 6667 -j ACCEPT
-A TRUSTED -i eth0 -p tcp -m tcp --sport 113 -j ACCEPT
-A TRUSTED -o eth0 -p tcp -m tcp --dport 6667 -j ACCEPT
COMMIT
# Completed on Sun Dec 21 03:17:39 2008
# Generated by iptables-save v1.3.5 on Sun Dec 21 03:17:39 2008
*nat
:PREROUTING ACCEPT [44:4055]
:POSTROUTING ACCEPT [68:3356]
:OUTPUT ACCEPT [2:172]
-A PREROUTING -d xx.xx.xx.xx -i eth0 -p tcp -m tcp --dport 200 -j DNAT --to-destination 192.168.2.101:22
-A PREROUTING -d xx.xx.xx.xx -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.2.101:80
-A PREROUTING -d xx.xx.xx.xx -i eth0 -p tcp -m tcp --dport 8000 -j DNAT --to-destination 192.168.2.151:8000
-A PREROUTING -d xx.xx.xx.xx -i eth0 -p tcp -m tcp --dport 5901 -j DNAT --to-destination 192.168.2.101:5901
-A PREROUTING -d xx.xx.xx.xx -i eth0 -p tcp -m tcp --dport 113 -j DNAT --to-destination 192.168.2.101:113
-A PREROUTING -d xx.xx.xx.xx -i eth0 -p tcp -m tcp --dport 6667 -j DNAT --to-destination 192.168.2.101:6667
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE


XX.XX.....is the public ip, any help or suggestions would be apprciated.

Thank you,

Keith

IndyGunFreak 12-21-2008 05:15 AM

OK, just curious.... There are numerous Linux irc clients, why would you install one via wine? Wine is far from perfect, and not every application will run well with it. If you can install Linux native apps, that is the way to go.

Other than that, I don't have much of a suggestion...

Good luck

IGF

keyboard1973 12-21-2008 05:56 AM

Quote:

Originally Posted by IndyGunFreak (Post 3382811)
OK, just curious.... There are numerous Linux irc clients, why would you install one via wine? Wine is far from perfect, and not every application will run well with it. If you can install Linux native apps, that is the way to go.

Other than that, I don't have much of a suggestion...

Good luck

IGF

Mirc is what I have been using for years, before I built a nat with linux. Can you give me an example of a few that would be comparable to mirc? Right now its not so much that I will not use a different irc client, its the point that it is not working and it was on my linux box with the smc router I had before. This leads me to believe that I am not opening the ports or right ports in the firewall rules. I am learning iptables as I go.. I am curious to what I am doing wrong if anything? Any more suggestions or help is appreciated.

Thanks again,

Keith

keyboard1973 12-21-2008 02:40 PM

Hello,

I was able to figure out what was wrong, when I reconfigured my configs I forgot to reconfigure the /etc/resolv.conf for my name servers so I could not resolved a host. Thanks again for your help.

Keith


All times are GMT -5. The time now is 06:00 PM.