LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2008, 03:33 AM   #1
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Rep: Reputation: 15
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
 
Old 12-21-2008, 06:15 AM   #2
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Linux Mint 18 XFCE, Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
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
 
Old 12-21-2008, 06:56 AM   #3
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IndyGunFreak View Post
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
 
Old 12-21-2008, 03:40 PM   #4
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
irc fserv - irc file server rastiazul Linux - Software 0 10-16-2008 05:02 PM
LXer: How To Set Up An IRC Server And Anope IRC Services LXer Syndicated Linux News 0 02-02-2007 01:24 AM
irc, NAT, dcc - almost there..but.. b0uncer Linux - Networking 7 08-22-2004 03:17 PM
How speak irc client and irc server program? mech Linux - Networking 1 03-31-2004 06:23 PM
NAT, Identd, and IRC Mephistopholes Linux - Networking 2 02-15-2002 11:29 AM


All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration