Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-20-2005, 07:35 AM   #1
Registered: Dec 2004
Location: Latvia
Distribution: slackware
Posts: 77

Rep: Reputation: 15
dnat problem

I have a small lan - 3 pcs, one is running irc and web servers, second is a workstation, third is a gateway and a firewall. I dnat irc and web server, everything works fine

$IPTABLES -t nat -A PREROUTING -p udp --dport 6667 -j DNAT --to-destination
$IPTABLES -t nat -A PREROUTING -p tcp --dport 6667 -j DNAT --to-destination

$IPTABLES -t nat -A PREROUTING -p udp --dport 80 -j DNAT --to-destination
$IPTABLES -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination

but the problem is that my irc server runs on port 6667 and apache on 80, and when i want to connect to any other irc servers on the internet from my workstation i cant, but i can browse web.

How can i run my irc server on port 6667 and connect from my workstation to other irc servers which run on port 6667 on the internet, the same as i can run my internal web on 80, and browse other web servers on the internet which run also on port 80?


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
iptables DNAT problem eantoranz Linux - Networking 2 09-12-2006 02:00 PM
shorewall problem DNAT masand Linux - Networking 3 08-11-2005 12:53 PM
Strange problem about iptables DNAT. zufeng Linux - Networking 1 06-28-2003 12:09 PM
problem about iptables DNAT. zufeng Linux - Security 3 06-19-2003 10:29 AM
DNAT and prerouting is my only problem closer8888 Linux - Networking 0 02-17-2003 11:46 PM

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

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