Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port 179 does not seem to be responsive even internally #187

Closed
xfy777 opened this issue Jul 21, 2023 · 4 comments
Closed

Port 179 does not seem to be responsive even internally #187

xfy777 opened this issue Jul 21, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@xfy777
Copy link

xfy777 commented Jul 21, 2023

Describe the bug
BGP sessions are failing to establish on our LAN to a router using pathvector.
Telnet into port 179 even locally on the same machine does not work despite specifically even adding ip table rules to accept ALL traffic. The IPs are pingable on both ends.

Environment

  1. Pathvector 6.3.2
  2. Ubuntu 22.04.2 LTS
  3. Config
asn: 57308
router-id: 23.142.248.47
source6: 2602:291::9ed3
source4: 23.142.248.47
prefixes:
  - 2a05:dfc1:4e00::/40

templates:
  upstream:
    allow-local-as: true
    announce: [ "57308,15", "57308:0:15" ]
    announce-default: false
    remove-all-communities: 57308
    local-pref6: 80
    add-on-import: [ "57308,12", "57308:0:12" ]
    announce-originated:  true

  downstream:
    filter-irr: true
    allow-blackhole-community: true
    filter-transit-asns: true
    auto-import-limits: true
    auto-as-set: true
    announce: [ "57308,15", "57308:0:15" ]
    announce-default: true
    remove-all-communities: 57308
    local-pref6: 200
    add-on-import: [ "57308,15", "57308:0:15" ]

peers:
  Upstream:
    asn: 393577
    template: upstream
    neighbors:
      - 2602:291::1
  1. Telnet
telnet 127.0.0.1 179
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Expected behavior
I would expect the router to establish sessions as it should, but they are stuck in idle.

pathvector status
PEER      AS      NEIGHBOR     STATE  IN      OUT  SINCE                INFO        
static6   -       -            up     1       0    2023-07-21 21:16:10               
default4  -       -            up     1       0    2023-07-21 21:16:10               
default6  -       -            up     1       0    2023-07-21 21:16:10               
device1   -       -            up     1       0    2023-07-21 21:16:10               
kernel1   -       -            up     0       2    2023-07-21 21:16:10               
kernel2   -       -            up     0       2    2023-07-21 21:16:10               
null4     -       -            up     1       0    2023-07-21 21:16:10               
null6     -       -            up     1       0    2023-07-21 21:16:10               
rpki1     -       -            up     364447  0    2023-07-21 21:20:40  Established  
Upstream  393577  2602:291::1  start               2023-07-21 21:16:10  Idle         
 sudo ss -tuln 'sport = :179'
Netid       State       Recv-Q       Send-Q             Local Address:Port               Peer Address:Port       Process       
root@57308:/home/sysop# 
@xfy777 xfy777 added the bug Something isn't working label Jul 21, 2023
@natesales
Copy link
Owner

This isn't a Pathvector problem - it sounds like BIRD isn't running. Try systemctl start bird, then rerun pathvector generate.

@xfy777
Copy link
Author

xfy777 commented Jul 22, 2023

Bird is indeed running and my understanding is pathvector specifically sets ports in each neighbor which is different that any config I've ever seen-- regardless not sure why the port is not running. Based on the config do you see any issues? Bird works itself when using a manual configuration but the generated one from pathvector is where the port is not open.

@natesales
Copy link
Owner

natesales commented Jul 23, 2023

Ah sorry, I misread your initial report. BIRD can fail to acquire a listening socket if it doesn't know where to find the peer address. You might try setting the listen6 address, including an interface specifier (something like listen6: 2001:db8::1%eno1)

@xfy777
Copy link
Author

xfy777 commented Jul 27, 2023

Thank you!!

@xfy777 xfy777 closed this as completed Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants