LinuxQuestions.org
Help answer threads with 0 replies.
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-09-2016, 05:39 PM   #1
JoseCuervo
Member
 
Registered: May 2007
Location: North Carolina
Distribution: RHEL 7, CentOS7
Posts: 82

Rep: Reputation: 18
Martian Source on dual-nic CentOS 7 VM


Hello,

I have configured a dual-nic CentOS 7 VM on ESXi 6 for use as an SSH server/bastion host.

NIC 1 - receives incoming ssh connections on 10.10.50.200
NIC 2 - connected to internal lan as 10.10.20.160

Call the external IP of my house 2.3.4.5, and the SSH client is a Windows computer with an IP of 10.10.10.100.

The CentOS VM NIC 1 is on a vSwitch with no other devices or VMs. Connections to my external IP are routed through my ISP router to my internal pfSense router, which then pushes them to the CentOS VM.

When I use PuTTy to connect to my external IP or directly to my CentOS VM I get these errors, and PuTTY times out:

Quote:
IPv4: martian source 10.10.50.200 from 2.3.4.5, on dev ens192
11 header: 00000000: 00 0c 29 90 ae f7 00 0c 29 82 38 dd 08 00 ..).....).8...


IPv4: martian source 10.10.50.200 from 10.10.10.100, on dev ens192
11 header: 00000000: 00 0c 29 90 ae f7 00 0c 29 82 38 dd 08 00 ..).....).8...
I have read a ton of martian source issues online, and I totally get why receiving a packet from the IP of the NIC receiving the packet is a no-no, but I have no idea why *any* connection to the VM makes the host think it is coming from the IP of the NIC. Dropping the second NIC, changing boot proto between static and none, and other small changes and restarts have not helped.

Has anyone seen this before, or have some obvious solution?

Thanks!
 
Old 01-10-2016, 10:31 PM   #2
JoseCuervo
Member
 
Registered: May 2007
Location: North Carolina
Distribution: RHEL 7, CentOS7
Posts: 82

Original Poster
Rep: Reputation: 18
Update: I have not solved this yet, even creating a new VM, dropping all firewalls, and configuring the two NICs separately and independently, one after the other. However, the new VM no longer has martian errors, instead it just fails to receive incoming connections. I think it might be a routing issue so I'm going to do a fresh install of a VM with one NIC, configure it completely, and then snapshot it and add a second NIC.
 
Old 01-11-2016, 03:16 AM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
I think it might be a routing issue so I'm going to do a fresh install of a VM with one NIC, configure it completely, and then snapshot it and add a second NIC.
Clever move. In the end, everything you did to and with it will interfere somehow...
Unless you documented what you did and can roll back neatly...
Good luck
Melissa
 
  


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
martian source in two nic on the same subnet schlabs Linux - Server 4 06-22-2015 07:35 AM
[SOLVED] Dual NIC and routing configuration on CentOS 5.4 bskrakes Linux - Networking 7 04-07-2010 02:53 PM
martian source serge_shp Linux - Networking 1 03-24-2007 07:04 AM
Dual Nic Centos Router winchester169 Linux - Networking 1 11-14-2006 07:57 PM
martian source saavik Linux - Networking 0 07-02-2003 02:47 AM

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

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