LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-19-2005, 10:17 AM   #1
jelgavchik
Member
 
Registered: Dec 2004
Location: Latvia
Distribution: slackware
Posts: 77

Rep: Reputation: 15
dnating irc server


Hello.
Here is my proble :
I have a small internal LAN of 3 pc, and they share one internet connection, one of these pcs is router. My problem is that i have an irc server runing on the pc which has internal ip 192.168.1.10 on port 6667 , my router has ip for internal network 192.168.1.1, and for example 1.1.1.1 for external so i must dnat to this internal irc server. i write a chain in my firewall script.


$IPTABLES -t nat PREROUTING -i $EXTIF -p tcp --dport 6667 -j dnat -to--destination 192.168.1.10

but still people cant connect my server here is the module list which loads with my firewall script


echo -en "ip_tables "
$MODPROBE ip_tables


echo -en "iptable_filter "
$MODPROBE iptable_filter

echo -en "ip_conntrack "
$MODPROBE ip_conntrack


echo -en "ip_conntrack_ftp "
$MODPROBE ip_conntrack_ftp

echo -en "ipt_mark "
$MODPROBE ipt_mark


echo -en "ipt_multiport\n"
$MODPROBE ipt_multiport


echo -en "ipt_state "
$MODPROBE ipt_state

echo -en "ipt_owner "
$MODPROBE ipt_owner

filtering at all.
echo -en "iptable_filter "
$MODPROBE iptable_filter

echo -en "ipt_REJECT "
$MODPROBE ipt_REJECT

echo -en "ip_conntrack_irc "
$MODPROBE ip_conntrack_irc


echo -en "iptable_nat\n"
$MODPROBE iptable_nat


echo -en "ip_nat_ftp "
$MODPROBE ip_nat_ftp


echo -e "ip_nat_irc "
$MODPROBE ip_nat_irc
 
Old 01-19-2005, 11:11 AM   #2
pakje
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian and Mandrake
Posts: 3

Rep: Reputation: 0
Your problem looks a bit like the one I had some time ago.
maybe is your iptables blocking other things, or the irc server is not accepting everything.
run
IPTABLES -L on your router, to see the current status of your ruleset. If it is way too much, you can reset it with:
IPTABLES -F
IPTABLES -t nat -F
IPTABLES -t mangle -F

you can also try to check with nmap from a computer on the internet if port 6667 is blocked by defaukt.
try to run an irc server on your router see if that works (only for a moment)

also loosen it a bit up like accepting UDP
$IPTABLES -t nat -A PREROUTING -p udp --dport 6665:6669 -j DNAT --to 10.10.10.10
$IPTABLES -t nat -A PREROUTING -p tcp --dport 6665:6669 -j DNAT --to 10.10.10.10

maybe enable masquerading and accept forwarding, I don't know if it is disabled by default.
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
$IPTABLES -A FORWARD -i $LAN_IF -j ACCEPT

I hope this will help you a little.
 
  


Reply



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 server? tidasu Linux - Software 6 04-17-2005 01:02 PM
IpTables DNating LostAgain Linux - Networking 27 09-29-2004 10:25 AM
How speak irc client and irc server program? mech Linux - Networking 1 03-31-2004 05:23 PM
irc server problem, cant join my own server..... BmxFace Linux - Networking 3 11-26-2003 08:51 AM
IRC server Chijtska Linux - General 4 02-08-2002 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:02 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
Open Source Consulting | Domain Registration