LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-31-2015, 03:52 PM   #1
rambog
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
Smile Enable SSH through firewall


Within my Windows host system, I setup a kali Linux VM (using Oracle VirtualBox). I started the sshd on kali but I cannot putty from the host to kali. Note: I can ping the host from kali but not vice versa. I suspect it was an issue with the firewall on kali so I followed the steps laid out in https://wiki.debian.org/iptables
Here is what the output of "iptables -L" returns:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhereanywhere state NEW tcp dpt:ssh
ACCEPT icmp -- anywhereanywhere icmp echo-request

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Does it look like the firewall will allow port 22 (ssh) through? If so, any other suggestions?
 
Old 01-02-2016, 01:31 PM   #2
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Sorry, don't have time to check about the firewall, but a quick "other suggestions", or question: with which user do you try to connect ? If it's as root, it's possible the root is forbidden in your /etc/ssh/sshd_config. Anyway in case you missed it, you may also want to check the sshd configuration.

For the firewall, maybe someone "fluent" in IPTABLES can answer this more quickly and precisely.
 
Old 01-02-2016, 05:06 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by rambog View Post
Within my Windows host system, I setup a kali Linux VM (using Oracle VirtualBox). I started the sshd on kali but I cannot putty from the host to kali. Note: I can ping the host from kali but not vice versa. I suspect it was an issue with the firewall on kali so I followed the steps laid out in https://wiki.debian.org/iptables
Here is what the output of "iptables -L" returns:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhereanywhere state NEW tcp dpt:ssh
ACCEPT icmp -- anywhereanywhere icmp echo-request

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Does it look like the firewall will allow port 22 (ssh) through? If so, any other suggestions?
Yor firewall doesn't block anything. Check the Virtualbox network configuration and the routing configuration on the host. What type of networking did you configure for the guest, what are the host's and guest's IP addresses, and the routing table on the host?
 
  


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
[SOLVED] Mageia 3 firewall can't enable everything. moshebagelfresser Mageia 3 07-12-2013 08:19 AM
Enable Firewall after Install? ctroyp Fedora - Installation 2 09-21-2005 08:06 PM
Enable firewall to allow VNC connection tflovik SUSE / openSUSE 2 05-29-2005 10:28 AM
Can't enable MonMOtha's firewall! Diademed Linux - Newbie 2 10-06-2004 09:36 PM
Enable gaming through firewall etvagonema Linux - Networking 2 03-28-2004 02:38 AM

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

All times are GMT -5. The time now is 07:38 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