LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-06-2002, 06:31 PM   #1
Cps530
LQ Newbie
 
Registered: Jul 2002
Posts: 8

Rep: Reputation: 0
External access to Ipcop


I posted the following some days ago:

I have IPCop with green and red cards. In my green network I have a SSH server using port 22 (IP: 192.168.0.1). My red card is connected to internet with fix IP. I want access my SSH server from outside using port 22 (my ISP blocks other ports). I set external services to open port 22 and forward port 22 from red to my internal ip 192.168.0.1 port 22. I also enabled SSH in IP configuration web page. All seems right, my access from internal network to internet is OK. But external access to my SSH server is completely imposible!!

Additional information: I'm trying to access from really outside. I can access the Ipcop web page from outside (https://x.x.x.x:445). I think I have to edit /etc/rc.d/rc.firewall.up, but don't know what to change. Any idea to fix the problem? Thanks in advance
 
Old 08-12-2002, 09:32 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Start by adding some -j LOG entries to your rc.firewall. eg iptables t nat -I PREROUTING -p tcp -i eth~ --dport 22 -j LOG --log-level 6 --log-prefix "incoming_ssh "
and iptables -I INPUT -p tcp -i eth~ --dport 22 -j LOG --log-level 6 --log-prefix "input_ssh "

Use -I to place these rules first in each chain.

If the packets are getting to these points, change the entries ti -A to place them at the end of the chains. If the packets are getting this far, you need to check the server on the destination pc.

try,
netstat -tanp
and see if ssh is waiting on port 22 and the correct interface.
You should at least get responses to SYN packets if ssh server is alive.

If packets are not getting to your ssh server pc, check to see if IPCOP has banned you for too many packets... wouldn't be the first to have this problem.

Regards,
peter
 
Old 08-12-2002, 09:37 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
and,
to correct some assumptions,

rc.firewall.up in the ssh server pc, if it runs Linux 2.4.xx
IPCOP uses ipchains and you may have some fun writing rules into it and having them remain.

2nd iptables -t nat -I PRE~
3rd look for your log outputs im /var/log/messages
try,
tail -f /var/log/messages,
again, on the ssh server.

Rgds,
Peter.
 
  


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
IPCop access from outside Cps530 Linux - Security 11 11-03-2006 05:19 PM
Need IPCop to IpCop VPN assistance Freddde Linux - Networking 1 09-15-2005 02:28 PM
access control in IPcop BillyB Linux - Networking 0 02-26-2005 09:06 AM
ipcop - can't access web interface esears Linux - Software 0 06-03-2004 06:14 AM
IPCOP firewall,router=no client access busbarn Linux - Networking 1 05-07-2003 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:31 AM.

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